From bbfecfb7cf8b3c2880a48fdf10b22959702f5d5d Mon Sep 17 00:00:00 2001 From: Russell Johnson <47639332+Russ4262@users.noreply.github.com> Date: Wed, 12 Jun 2019 06:33:06 -0500 Subject: [PATCH] Handle FreeCADGui module with IF: case --- src/Mod/Path/PathScripts/PathAreaOp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathAreaOp.py b/src/Mod/Path/PathScripts/PathAreaOp.py index 1ed355ec59..0634cdf49c 100644 --- a/src/Mod/Path/PathScripts/PathAreaOp.py +++ b/src/Mod/Path/PathScripts/PathAreaOp.py @@ -27,7 +27,6 @@ # with axis & rotation toggles and associated min/max values import FreeCAD -import FreeCADGui import Path import PathScripts.PathLog as PathLog import PathScripts.PathOp as PathOp @@ -37,6 +36,8 @@ import Draft # from PathScripts.PathUtils import waiting_effects from PySide import QtCore import math +if FreeCAD.GuiUp: + import FreeCADGui __title__ = "Base class for PathArea based operations." __author__ = "sliptonic (Brad Collette)" @@ -45,7 +46,7 @@ __doc__ = "Base class and properties for Path.Area based operations." __contributors__ = "mlampert [FreeCAD], russ4262 (Russell Johnson)" __createdDate__ = "2017" __scriptVersion__ = "2e testing" -__lastModified__ = "2019-06-11 14:30 CST" +__lastModified__ = "2019-06-12 06:28 CST" if False: PathLog.setLevel(PathLog.Level.DEBUG, PathLog.thisModule())