summaryrefslogtreecommitdiff
path: root/src/main/python
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/python')
-rw-r--r--src/main/python/OMChem/Flowsheet.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/python/OMChem/Flowsheet.py b/src/main/python/OMChem/Flowsheet.py
index c862299..a83ac4e 100644
--- a/src/main/python/OMChem/Flowsheet.py
+++ b/src/main/python/OMChem/Flowsheet.py
@@ -1,6 +1,6 @@
import os
import csv
-from subprocess import Popen, PIPE
+from subprocess import Popen, PIPE,STARTUPINFO,STARTF_USESHOWWINDOW
import pandas as pd
class Flowsheet():
@@ -54,8 +54,9 @@ class Flowsheet():
if self.sim_method == 'Eqn':
simpath = self.eqn_mos_path
os.chdir(self.sim_dir_path)
-
- self.process = Popen([self.omc_path, '-s',simpath], stdout=PIPE, stderr=PIPE)
+ startupinfo = STARTUPINFO
+ startupinfo.dwFlags |= STARTF_USESHOWWINDOW
+ self.process = Popen([self.omc_path, '-s',simpath], stdout=PIPE, stderr=PIPE, startupinfo=startupinfo)
self.stdout, self.stderr = self.process.communicate()
os.chdir(self.root_dir)