Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
Mpp
Commits
4490f846
Commit
4490f846
authored
Mar 04, 2020
by
niklas.baumgarten
Browse files
added stderr
parent
6b521f47
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/mppy.py
View file @
4490f846
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment