From 8e8f35e07651499a5718131f76a351346df30bb3 Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Fri, 28 Jun 2002 16:20:59 +0000 Subject: Make sure we identify cygwin systems and set environment defaults correctly. --- src/engine/SCons/Platform/__init__.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/engine/SCons/Platform/__init__.py b/src/engine/SCons/Platform/__init__.py index 42b2607..8a56b09 100644 --- a/src/engine/SCons/Platform/__init__.py +++ b/src/engine/SCons/Platform/__init__.py @@ -52,14 +52,17 @@ import SCons.Errors def platform_default(): """Return the platform string for our execution environment. + + The returned value should map to one of the SCons/Platform/*.py + files. Since we're architecture independent, though, we don't + care about the machine architecture. """ - if sys.platform == 'win32': - return 'win32' - if os.name == 'cygwin': - return 'cygwin' if os.name == 'posix': - return 'posix' - return None + if sys.platform == 'cygwin': + return 'cygwin' + return 'posix' + else: + return sys.platform def platform_module(name = platform_default()): """Return the imported module for the platform. -- cgit v0.12