From 91719fce6cd7d1c3121e02cb59c740bc6c0d4d11 Mon Sep 17 00:00:00 2001 From: Harald Geyer Date: Fri, 3 Nov 2017 17:41:42 +0000 Subject: [PATCH] Draft: Fix module loading in non-GUI mode The WorkingPlane module is used in getSVG and getDXF, so we need to import it unconditionally. --- src/Mod/Draft/Draft.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index c6cdcf4a78..79ae7090aa 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -47,11 +47,11 @@ __url__ = "http://www.freecadweb.org" '''The Draft module offers a range of tools to create and manipulate basic 2D objects''' -import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc +import FreeCAD, math, sys, os, DraftVecUtils, Draft_rc, WorkingPlane from FreeCAD import Vector if FreeCAD.GuiUp: - import FreeCADGui, WorkingPlane + import FreeCADGui from PySide import QtCore from PySide.QtCore import QT_TRANSLATE_NOOP gui = True