1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Make build scripts Python3 compatible

- The Windows, UWP, Android (on Windows) and Linux builds are
  tested with Scons 3.0 alpha using Python 3.
- OSX and iOS should hopefully work but are not tested since
  I don't have a Mac.
- Builds using SCons 2.5 and Python 2 should not be impacted.
This commit is contained in:
Matthias Hoelzl
2017-08-26 18:53:49 +02:00
parent a919a013f5
commit b6e1e47e3a
17 changed files with 123 additions and 87 deletions

View File

@@ -12,7 +12,7 @@ def get_name():
def can_build():
if (sys.platform == "darwin" or os.environ.has_key("OSXCROSS_ROOT")):
if (sys.platform == "darwin" or ("OSXCROSS_ROOT" in os.environ)):
return True
return False