Skip to content
Snippets Groups Projects
Commit 3db0c04f authored by mads's avatar mads
Browse files

bug fix

parent 677d5205
No related branches found
No related tags found
No related merge requests found
......@@ -280,6 +280,8 @@ class SimulationThread(Thread):
p.set_nice(psutil.BELOW_NORMAL_PRIORITY_CLASS)
self.process.communicate()
errorcode = self.process.returncode
if not os.path.isdir(os.path.dirname(self.modelpath + self.sim.stdout_filename)):
os.makedirs(os.path.dirname(self.modelpath + self.sim.stdout_filename))
with open(self.modelpath + self.sim.stdout_filename, encoding='utf-8') as fid:
stdout = fid.read()
self.res = errorcode, stdout
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment