Skip to content

Commit fa56e30

Browse files
InigoGastesiigastesi
andauthored
fixes issue #207 (#208)
Co-authored-by: igastesi <igastesi@hi-iberia.es>
1 parent bdd04a3 commit fa56e30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OMPython/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1286,13 +1286,13 @@ def simulate(self, resultfile=None, simflags=None, verbose=True): # 11
12861286
p = subprocess.Popen(cmd, env=my_env, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
12871287
else:
12881288
p = subprocess.Popen(cmd, env=my_env)
1289-
p.wait()
1290-
p.terminate()
12911289
else:
12921290
if not verbose:
12931291
p = subprocess.Popen(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
12941292
else:
12951293
p = subprocess.Popen(cmd)
1294+
p.wait()
1295+
p.terminate()
12961296
os.chdir(currentDir)
12971297
self.simulationFlag = True
12981298
else:

0 commit comments

Comments
 (0)