Skip to content
Permalink
Browse files

split cmd into a list

  • Loading branch information...
sdpython committed May 22, 2015
1 parent 617a4f9 commit c4e324303d28cf194434358e8d78e2f374ac5c1b
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/pyquickhelper/pycode/call_setup_hook.py
@@ -6,6 +6,7 @@
"""
import os
import sys
import shlex
import subprocess
from ..loghelper import noLOG, run_cmd
from ..loghelper.flog import get_interpreter_path
@@ -54,7 +55,11 @@ def call_setup_hook(folder, module_name, fLOG=noLOG, must_be=False,
else:
if use_print:
print("subprocess.call", cmd)
exit = subprocess.call(cmd)
if not sys.platform.startswith("win"):
args = shlex.split(cmd)
else:
args = cmd
exit = subprocess.call(args)
out = "linux"
err = ""

0 comments on commit c4e3243

Please sign in to comment.
You can’t perform that action at this time.