mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Make sure to capture stderr when using openmc.run()
This commit is contained in:
parent
5863cc5c99
commit
ad7bff393d
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ if sys.version_info[0] >= 3:
|
|||
def _run(command, output, cwd):
|
||||
# Launch a subprocess
|
||||
p = subprocess.Popen(command, shell=True, cwd=cwd, stdout=subprocess.PIPE,
|
||||
universal_newlines=True)
|
||||
stderr=subprocess.STDOUT, universal_newlines=True)
|
||||
|
||||
# Capture and re-print OpenMC output in real-time
|
||||
while True:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue