Refactored operation initialisation into separate module so it can be called from the WB and the Job UI.
This commit is contained in:
committed by
Yorik van Havre
parent
cc320aa802
commit
cf2799ccd8
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user