Commit 0468c0b4 authored by Andreas Freise's avatar Andreas Freise
Browse files

playing with stderr/stdout.

parent 283c857e
...@@ -382,10 +382,10 @@ class kat(object): ...@@ -382,10 +382,10 @@ class kat(object):
p=subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE) p=subprocess.Popen(cmd, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
err = "" err = ""
if self.verbose: print "Finesse binary output:" #if self.verbose: print "Finesse output:"
for line in iter(p.stderr.readline, ""): for line in iter(p.stderr.readline, ""):
#err += line err += line
if len(line) > 0: if len(line) > 0:
if line.rstrip().endswith('%'): if line.rstrip().endswith('%'):
...@@ -393,8 +393,8 @@ class kat(object): ...@@ -393,8 +393,8 @@ class kat(object):
action = vals[0].strip() action = vals[0].strip()
prc = vals[1].strip()[:-1] prc = vals[1].strip()[:-1]
sys.stdout.write("\r{0} {1}%".format(action, prc)) sys.stdout.write("\r{0} {1}%".format(action, prc))
elif line[0] == '*': #elif line[0] == '*':
sys.stdout.write(line) #sys.stdout.write(line)
[out,errpipe] = p.communicate() [out,errpipe] = p.communicate()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment