From 1c8f4822c6d2213644fa6766d3318d9b45b76ee4 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Fri, 28 Jun 2002 16:20:59 +0000 Subject: [PATCH] Make sure we identify cygwin systems and set environment defaults correctly. git-svn-id: http://scons.tigris.org/svn/scons/trunk@398 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- 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 42b26072..8a56b099 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. -- 2.26.2