Path: Fix unable to import from CLI

Need to guard 'import FreeCADGui' in this case.
This commit is contained in:
Jon Nordby
2015-09-05 00:53:42 +02:00
parent 9933e7ed37
commit c442e80939
4 changed files with 18 additions and 5 deletions

View File

@@ -22,9 +22,13 @@
#* *
#***************************************************************************
import FreeCAD,FreeCADGui,Path,PathGui
import FreeCAD,Path
from PySide import QtCore,QtGui
FreeCADGui = None
if FreeCAD.GuiUp:
import FreeCADGui
"""Path Project object and FreeCAD command"""
# Qt tanslation handling