Skip to content

Commit

Permalink
try to fix win test
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Oct 4, 2023
1 parent 4407cb6 commit ddca4db
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/internal/winmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import errno
import fnmatch
import os
import shlex
import shutil
import site
import ssl
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ddca4db

Please sign in to comment.