summaryrefslogtreecommitdiffstats
path: root/etc/TestCmd.py
diff options
context:
space:
mode:
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