From bf2225c4a28294489b315933c75fd3c2e41bea5a Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Thu, 19 Apr 2012 20:24:45 -0300 Subject: [PATCH] Remove unnecessary module loading at Draft init --- src/Mod/Draft/InitGui.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Mod/Draft/InitGui.py b/src/Mod/Draft/InitGui.py index 7ec5028ed..9ae60310d 100644 --- a/src/Mod/Draft/InitGui.py +++ b/src/Mod/Draft/InitGui.py @@ -24,8 +24,6 @@ __title__="FreeCAD Draft Workbench - Init file" __author__ = "Yorik van Havre " __url__ = ["http://free-cad.sourceforge.net"] -import os,DraftTools - class DraftWorkbench (Workbench): "the Draft Workbench" Icon = """ @@ -179,9 +177,9 @@ class DraftWorkbench (Workbench): else: return try: - import macros,DraftTools,DraftGui + import os,macros,DraftTools,DraftGui self.appendMenu(["&Macro",str(DraftTools.translate("draft","Installed Macros"))],macros.macrosList) - Log ('Loading Draft GUI...done\n') + Log ('Loading Draft module...done\n') except: pass self.cmdList = ["Draft_Line","Draft_Wire","Draft_Circle","Draft_Arc",