Skip to content

Commit 14bc5c2

Browse files
committed
Use command list instead of string
Signed-off-by: Gregory Shimansky <[email protected]>
1 parent 34589f1 commit 14bc5c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def set_env_vars(vs_path, arch="x64"):
137137
if not vcvarsall_path.exists():
138138
raise FileNotFoundError(f"vcvarsall.bat not found in expected path: {vcvarsall_path}")
139139

140-
command = f'call "{vcvarsall_path}" {arch} && set'
140+
command = ["call", vcvarsall_path, arch, "&&", "set"]
141141
output = subprocess.check_output(command, shell=True, text=True)
142142

143143
for line in output.splitlines():

0 commit comments

Comments
 (0)