Fix bug in Executor._run_openmc that caused infinite loop in Python 3

This commit is contained in:
Paul Romano 2015-07-02 15:58:02 +07:00
parent 9b8e6cb758
commit d267bbd784

View file

@ -35,7 +35,7 @@ class Executor(object):
print(line, end='')
# If OpenMC is finished, break loop
if line == '' and p.poll() != None:
if not line and p.poll() != None:
break
# Return the returncode (integer, zero if no problems encountered)