Skip to content

Commit

Permalink
fixes issue #207 (#208)
Browse files Browse the repository at this point in the history
Co-authored-by: igastesi <igastesi@hi-iberia.es>
  • Loading branch information
InigoGastesi and igastesi authored Apr 24, 2024
1 parent bdd04a3 commit fa56e30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMPython/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1286,13 +1286,13 @@ def simulate(self, resultfile=None, simflags=None, verbose=True): # 11
p = subprocess.Popen(cmd, env=my_env, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
else:
p = subprocess.Popen(cmd, env=my_env)
p.wait()
p.terminate()
else:
if not verbose:
p = subprocess.Popen(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
else:
p = subprocess.Popen(cmd)
p.wait()
p.terminate()
os.chdir(currentDir)
self.simulationFlag = True
else:
Expand Down

0 comments on commit fa56e30

Please sign in to comment.