mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-01-13 17:37:56 +08:00
parent
3f05b1a897
commit
bcb83b921c
@ -72,7 +72,7 @@ def run_cmd(cmd, silent=False):
|
||||
if silent:
|
||||
status, output = getstatusoutput(cmd)
|
||||
else:
|
||||
status, output = os.system(' '.join(cmd)), ''
|
||||
status, output = subprocess.call(cmd), ''
|
||||
if status:
|
||||
msg = 'Error while %s ...\n\terror=%d, output="""%s"""' %(info, status, output)
|
||||
raise Exception(msg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user