aboutsummaryrefslogtreecommitdiff
path: root/bundle/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'bundle/scripts')
-rw-r--r--bundle/scripts/smoke-package.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bundle/scripts/smoke-package.py b/bundle/scripts/smoke-package.py
index 98ee52a..44f885f 100644
--- a/bundle/scripts/smoke-package.py
+++ b/bundle/scripts/smoke-package.py
@@ -9,7 +9,12 @@ import time
root = Path(sys.argv[1]).resolve()
environment = os.environ.copy()
-environment["PATH"] = os.pathsep.join((os.path.join(environment["SystemRoot"], "System32"), environment["SystemRoot"])) if sys.platform == "win32" else "/nonexistent"
+if sys.platform == "win32":
+ # Windows environ lookups ignore case; the copied dict has uppercase keys.
+ system_root = os.environ["SystemRoot"]
+ environment["PATH"] = os.pathsep.join((os.path.join(system_root, "System32"), system_root))
+else:
+ environment["PATH"] = "/nonexistent"
with tempfile.TemporaryDirectory(prefix="cpsc bundle smoke ") as directory:
work = Path(directory)
if sys.platform == "win32":