mirror of https://github.com/ARMmbed/mbed-os.git
Added flag to run_cmd Popen invocation to do default decoding
parent
755931de72
commit
792d13d395
|
@ -104,7 +104,8 @@ def run_cmd(command, work_dir=None, chroot=None, redirect=False):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
process = Popen(command, stdout=PIPE,
|
process = Popen(command, stdout=PIPE,
|
||||||
stderr=STDOUT if redirect else PIPE, cwd=work_dir)
|
stderr=STDOUT if redirect else PIPE, cwd=work_dir,
|
||||||
|
universal_newlines=True)
|
||||||
_stdout, _stderr = process.communicate()
|
_stdout, _stderr = process.communicate()
|
||||||
except OSError:
|
except OSError:
|
||||||
print("[OS ERROR] Command: "+(' '.join(command)))
|
print("[OS ERROR] Command: "+(' '.join(command)))
|
||||||
|
|
Loading…
Reference in New Issue