Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build_files/scons/tools/btools.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/build_files/scons/tools/btools.py b/build_files/scons/tools/btools.py
index 9ab5fce0dbd..744896cef2d 100644
--- a/build_files/scons/tools/btools.py
+++ b/build_files/scons/tools/btools.py
@@ -63,19 +63,8 @@ def get_hash():
return build_hash
-# copied from: http://www.scons.org/wiki/AutoconfRecipes
def checkEndian():
- import struct
- array = struct.pack('cccc', '\x01', '\x02', '\x03', '\x04')
- i = struct.unpack('i', array)
- # Little Endian
- if i == struct.unpack('<i', array):
- return "little"
- # Big Endian
- elif i == struct.unpack('>i', array):
- return "big"
- else:
- raise Exception("cant find endian")
+ return sys.byteorder
# This is used in creating the local config directories