Fix popen usage.

This commit is contained in:
Martin v. Löwis 2007-08-30 18:14:01 +00:00
parent f413fb06b9
commit e89cd17dfa
1 changed files with 2 additions and 2 deletions

View File

@ -390,8 +390,8 @@ class CAB:
cabarc = "cabarc.exe"
cmd = r'"%s" -m lzx:21 n %s.cab @%s.txt' % (cabarc, self.name, self.name)
p = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)[0]
for line in (p.stdout, p.stdin):
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
for line in p.stdout:
if line.startswith(" -- adding "):
sys.stdout.write(".")
else: