__init__.py (scons-4.2.0) | : | __init__.py (SCons-4.3.0) | ||
---|---|---|---|---|
skipping to change at line 55 | skipping to change at line 55 | |||
import importlib | import importlib | |||
import os | import os | |||
import sys | import sys | |||
import tempfile | import tempfile | |||
import SCons.Errors | import SCons.Errors | |||
import SCons.Subst | import SCons.Subst | |||
import SCons.Tool | import SCons.Tool | |||
def platform_default(): | def platform_default(): | |||
"""Return the platform string for our execution environment. | r"""Return the platform string for our execution environment. | |||
The returned value should map to one of the SCons/Platform/\*.py | The returned value should map to one of the SCons/Platform/\*.py | |||
files. Since scons is architecture independent, though, we don't | files. Since scons is architecture independent, though, we don't | |||
care about the machine architecture. | care about the machine architecture. | |||
""" | """ | |||
osname = os.name | osname = os.name | |||
if osname == 'java': | if osname == 'java': | |||
osname = os._osType | osname = os._osType | |||
if osname == 'posix': | if osname == 'posix': | |||
if sys.platform == 'cygwin': | if sys.platform == 'cygwin': | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |