Prefer subprocess.Popen for now

This commit is contained in:
Pedro Algarvio 2014-04-07 23:14:27 +01:00
parent 20adbd725a
commit a22a3af684

View file

@ -369,15 +369,16 @@ def run(opts):
print('Running CMD: {0}'.format(cmd))
sys.stdout.flush()
proc = NonBlockingPopen(
proc = subprocess.Popen(
cmd,
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
stream_stds=True
)
proc.poll_and_read_until_finish()
stdout, _ = proc.communicate()
if stdout:
print(stdout)
sys.stdout.flush()
retcode = proc.returncode