summaryrefslogtreecommitdiffstats
path: root/etc/TestCmd.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-08-12 17:53:04 (GMT)
committerSteven Knight <knight@baldmt.com>2002-08-12 17:53:04 (GMT)
commit4b97c6ca164273b220c1b1f5fdfa18b8ba28b0ca (patch)
tree10d6ce617ee40268dd95040b67886a68ae8055fc /etc/TestCmd.py
parent1276260fda5a332d8433a6caa2dfa31871ac50d5 (diff)
downloadSCons-4b97c6ca164273b220c1b1f5fdfa18b8ba28b0ca.zip
SCons-4b97c6ca164273b220c1b1f5fdfa18b8ba28b0ca.tar.gz
SCons-4b97c6ca164273b220c1b1f5fdfa18b8ba28b0ca.tar.bz2
Redo the uppercasing of drives on win32 fix. (Anthony Roach)
Diffstat (limited to 'etc/TestCmd.py')
-rw-r--r--etc/TestCmd.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/TestCmd.py b/etc/TestCmd.py
index 17d520b..2718494 100644
--- a/etc/TestCmd.py
+++ b/etc/TestCmd.py
@@ -610,6 +610,11 @@ class TestCmd:
cwd = os.getcwd()
os.chdir(path)
self.workdir = os.getcwd()
+ # Uppercase the drive letter since the case of drive
+ # letters is pretty much random on win32:
+ drive,rest = os.path.splitdrive(self.workdir)
+ if drive:
+ self.workdir = string.upper(drive) + rest
os.chdir(cwd)
else:
self.workdir = None