Commit c7d3c900 authored by Betoule Marc's avatar Betoule Marc
Browse files

Small improvement to loggedsubprocess

parent f947e7a8
......@@ -225,8 +225,8 @@ class Environment(EnvironmentBase):
ef = self.get_data_fn(proc+'.err')
o = file(of,'w')
e = file(ef,'w')
o.write('#'+' '.join([str(a) for a in args])+'\n')
o.flush()
e.write('#'+' '.join([str(a) for a in args])+'\n')
e.flush()
p=subprocess.Popen(args, stdout=o, stderr=e, shell=shell)
p.communicate()[0]
if except_on_failure:
......
Markdown is supported
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