Hopefully fix a bug on Windows, where we were trying to read from stdout but hadn't created the process with the flags to actually make the stdout be available to read. r=bustage

This commit is contained in:
jwalden@mit.edu 2008-04-08 01:44:26 -07:00
Родитель f7abfd1638
Коммит 29a8c785e5
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -160,7 +160,9 @@ class Process:
import subprocess
cmd = [command]
cmd.extend(args)
p = subprocess.Popen(cmd, env = env)
p = subprocess.Popen(cmd, env = env,
stdout = subprocess.PIPE,
stderr = subprocess.STDOUT)
self._out = p.stdout
else:
import popen2