Remove MinGW runtime DLL requirements from bundled outputs

This commit is contained in:
Max Lv
2026-09-11 00:48:55 +08:00
parent 28b6147b79
commit e447fe32bf
5 changed files with 32 additions and 29 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ def main():
if os.name != "nt":
parser.error("--isolate-windows-runtime requires Windows")
environment = os.environ.copy()
system_root = environment["SystemRoot"]
system_root = os.environ["SYSTEMROOT"]
environment["PATH"] = os.pathsep.join((system_root, os.path.join(system_root, "System32")))
binary_dir = Path(args.bin).resolve()
suffix = ".exe" if os.name == "nt" else ""