FEM: Fix unexpected error with ccx_* unset if Popoen fails

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
Przemo Firszt 2015-11-11 22:20:34 +00:00
parent e90ed4bf65
commit f74e016f30

View File

@ -396,6 +396,8 @@ class FemTools(QtCore.QRunnable, QtCore.QObject):
ccx_binary = "ccx"
self.ccx_binary = ccx_binary
import subprocess
ccx_stdout = None
ccx_stderr = None
try:
p = subprocess.Popen([self.ccx_binary], stdout=subprocess.PIPE,
stderr=subprocess.PIPE, shell=False)