Fem: fix: system() is evaluated instead of calling it

This commit is contained in:
Bernd Hahnebach
2015-03-24 11:29:51 +01:00
committed by wmayer
parent 7e2e452f50
commit dfb16f8b0a

View File

@@ -214,9 +214,9 @@ class _JobControlTaskPanel:
# the categories are shown only if they are not empty.
self.form=FreeCADGui.PySideUic.loadUi(FreeCAD.getHomePath() + "Mod/Fem/MechanicalAnalysis.ui")
from platform import system
if system == 'Linux':
if system() == 'Linux':
self.CalculixBinary = 'ccx'
elif system == 'Windows':
elif system() == 'Windows':
self.CalculixBinary = FreeCAD.getHomePath() + 'bin/ccx.exe'
else:
self.CalculixBinary = 'ccx'