Refactored operation initialisation into separate module so it can be called from the WB and the Job UI.

This commit is contained in:
Markus Lampert
2018-09-29 17:33:56 -07:00
committed by Yorik van Havre
parent cc320aa802
commit cf2799ccd8
4 changed files with 82 additions and 33 deletions

View File

@@ -31,6 +31,7 @@ import PathScripts.PathJobCmd as PathJobCmd
import PathScripts.PathJobDlg as PathJobDlg
import PathScripts.PathGeom as PathGeom
import PathScripts.PathGui as PathGui
import PathScripts.PathGuiInit as PathGuiInit
import PathScripts.PathLog as PathLog
import PathScripts.PathPreferences as PathPreferences
import PathScripts.PathSetupSheetGui as PathSetupSheetGui
@@ -1194,3 +1195,6 @@ def Create(base, template=None):
traceback.print_exc(exc)
FreeCAD.ActiveDocument.abortTransaction()
# make sure the UI has been initialized
PathGuiInit.Startup()