Skip to content

Commit 6e1e220

Browse files
fix bug
1 parent 01a245b commit 6e1e220

File tree

6 files changed

+7
-2
lines changed

6 files changed

+7
-2
lines changed

SIM_GUI_exe.zip

-293 KB
Binary file not shown.

__pycache__/UI.cpython-37.pyc

4 Bytes
Binary file not shown.

__pycache__/main.cpython-36.pyc

4 Bytes
Binary file not shown.
4 Bytes
Binary file not shown.

__pycache__/runSIM.cpython-37.pyc

42 Bytes
Binary file not shown.

runSIM.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# -*- coding: utf-8 -*-
22
import os
3+
import subprocess
34

45

56
def runSIM(mode, exePath, argv):
@@ -9,5 +10,9 @@ def runSIM(mode, exePath, argv):
910
nowPath = os.path.join(nowPath, fileName)
1011
# print(nowPath)
1112
argv = nowPath + ' ' + argv
12-
res = os.popen(argv)
13-
res.close()
13+
# res = os.popen(argv)
14+
# res.close()
15+
p = subprocess.Popen(argv, stdin=subprocess.PIPE,
16+
stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
17+
p.wait()
18+
return

0 commit comments

Comments
 (0)