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