Make sure to capture stderr when using openmc.run()

This commit is contained in:
Paul Romano 2016-04-27 15:36:36 -05:00
parent 5863cc5c99
commit ad7bff393d

View file

@ -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: