FEM: do not guard module imports if the module will be imported in gui mode only

This commit is contained in:
Bernd Hahnebach
2020-02-27 12:43:44 +01:00
parent b340ea1dee
commit d2f506162d

View File

@@ -26,10 +26,9 @@ __url__ = "http://www.freecadweb.org"
## \addtogroup FEM
# @{
import FreeCAD
if FreeCAD.GuiUp:
from PySide import QtGui
# it is a Gui only module and should only be imported in Gui mode
# thus no guard is needed
from PySide import QtGui
ERROR_COLOR = "red"