From d7290359d59b6c75ded0e89370475edaaff1555b Mon Sep 17 00:00:00 2001 From: Ryan Prichard Date: Tue, 14 Jun 2016 05:38:09 -0500 Subject: [PATCH] Minor tweaks in ship/make_msvc_package.py - Fix a typo in the 7-Zip default paths. - Change env["Path"] to env["PATH"]. Python is case-sensitive, and "Path" isn't working. Windows itself seems to prefer "Path". I'm guessing Python is converting "Path" to "PATH" for platform interoperability. --- ship/make_msvc_package.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ship/make_msvc_package.py b/ship/make_msvc_package.py index 240a47e..f8d3716 100755 --- a/ship/make_msvc_package.py +++ b/ship/make_msvc_package.py @@ -37,8 +37,8 @@ import sys os.chdir(common_ship.topDir) ZIP_TOOL = common_ship.requireExe("7z.exe", [ - "C:\\Program Files\\7-Zip\7z.exe", - "C:\\Program Files (x86)\\7-Zip\7z.exe", + "C:\\Program Files\\7-Zip\\7z.exe", + "C:\\Program Files (x86)\\7-Zip\\7z.exe", ]) MSVC_VERSION_TABLE = { @@ -101,7 +101,7 @@ def build(arch, packageDir, xp=False): sys.exit("Error: MSVC environment script missing: " + devCmdPath) newEnv = os.environ.copy() - newEnv["Path"] = os.path.dirname(sys.executable) + ";" + common_ship.defaultPathEnviron + newEnv["PATH"] = os.path.dirname(sys.executable) + ";" + common_ship.defaultPathEnviron commandLine = ( '"' + devCmdPath + '" && ' " vcbuild.bat" +