Commit 4490f846 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

added stderr

parent 6b521f47
......@@ -59,11 +59,18 @@ class Mpp:
break
if stdout:
print(stdout.decode('utf-8').strip('\n'))
rc = process.poll()
if rc != 0:
while True:
stderr = process.stderr.readline()
if stderr == b'' and process.poll() is not None:
break
if stderr:
print(stderr.decode('utf-8').strip('\n'))
process.wait()
process.stdout.close()
process.stderr.close()
return process.poll()
return rc
def create_working_dir(self):
if not os.path.isdir(self.PROJECT_BUILD_DIR):
......
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