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