diff --git a/scripts/internal/winmake.py b/scripts/internal/winmake.py index cb039d02d..6978a7e61 100755 --- a/scripts/internal/winmake.py +++ b/scripts/internal/winmake.py @@ -19,7 +19,6 @@ import errno import fnmatch import os -import shlex import shutil import site import ssl @@ -115,9 +114,7 @@ def win_colorprint(s, color=LIGHTBLUE): def sh(cmd, nolog=False): if not nolog: safe_print("cmd: " + cmd) - if isinstance(cmd, str): - cmd = shlex.split(cmd) - p = subprocess.Popen(cmd, env=os.environ, cwd=os.getcwd()) + p = subprocess.Popen(cmd, shell=True, env=os.environ, cwd=os.getcwd()) # noqa p.communicate() if p.returncode != 0: sys.exit(p.returncode)