diff options
author | Steven Knight <knight@baldmt.com> | 2002-08-28 16:01:52 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-08-28 16:01:52 (GMT) |
commit | 36e06c5c7557d40c4d4953e56f8c80d2a27bdd93 (patch) | |
tree | 7bd168d5cf33631bbeeae2e8890acf1da471427d /src/engine/SCons | |
parent | 5579408699ca7d0c1da071ad61685d1635ecd4fe (diff) | |
download | SCons-36e06c5c7557d40c4d4953e56f8c80d2a27bdd93.zip SCons-36e06c5c7557d40c4d4953e56f8c80d2a27bdd93.tar.gz SCons-36e06c5c7557d40c4d4953e56f8c80d2a27bdd93.tar.bz2 |
On Win32 systems, supply a default if PATHEXT isn't in the environment; it doesn't exist on Win95/Win98.
Diffstat (limited to 'src/engine/SCons')
-rw-r--r-- | src/engine/SCons/Util.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/SCons/Util.py b/src/engine/SCons/Util.py index 5178956..63c992e 100644 --- a/src/engine/SCons/Util.py +++ b/src/engine/SCons/Util.py @@ -433,7 +433,10 @@ if sys.platform == 'win32': if is_String(path): path = string.split(path, os.pathsep) if pathext is None: - pathext = os.environ['PATHEXT'] + try: + pathext = os.environ['PATHEXT'] + except KeyError: + pathext = '.COM;.EXE;.BAT;.CMD' if is_String(pathext): pathext = string.split(pathext, os.pathsep) for ext in pathext: |