Path: Fix unable to import from CLI
Need to guard 'import FreeCADGui' in this case.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user