FEM: fix in solver settings, use a standard value if binary could not be read

This commit is contained in:
Bernd Hahnebach
2019-03-29 10:08:20 +01:00
committed by wmayer
parent 5718eb4dcc
commit 162595346a

View File

@@ -53,7 +53,7 @@ class _BinaryDlg(object):
def getBinary(self):
paramObj = App.ParamGet(self.param)
binary = self.default
if not paramObj.GetBool(self.useDefault):
if not paramObj.GetBool(self.useDefault, True):
binary = paramObj.GetString(self.customPath)
return distutils.spawn.find_executable(binary)