Skip to content

Commit

Permalink
Win: better check for exitstatus
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Mar 22, 2020
1 parent 54189bb commit d2288b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ogs5py/ogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1180,10 +1180,9 @@ def run_model(
if sys.platform != "win32":
child.close()
self.exitstatus = child.exitstatus
success = self.exitstatus == 0
else:
# on windows, this exitstatus is wrongly false
success = True
self.exitstatus = child.wait()
success = self.exitstatus == 0
# close the output stream
out.close()

Expand Down

0 comments on commit d2288b1

Please sign in to comment.