We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cf7717 commit 3c6f783Copy full SHA for 3c6f783
installer/build_server.py
@@ -30,8 +30,9 @@
30
31
import datetime
32
import platform
33
-import shutil
34
import re
+import shutil
35
+import shlex
36
import stat
37
import subprocess
38
import sysconfig
@@ -80,7 +81,7 @@ def output(line):
80
81
82
def run_command(command, working_dir=None):
83
"""Utility function to return output from command line"""
- short_command = command.split('" ')[0] # We don't need to print args
84
+ short_command = shlex.split(command)[0] # We don't need to print args
85
output("Running %s... (%s)" % (short_command, working_dir))
86
p = subprocess.Popen(
87
command,
0 commit comments