diff --git a/src/Mod/Path/PathScripts/PathGuiInit.py b/src/Mod/Path/PathScripts/PathGuiInit.py index 185fa680f3..5786c507bb 100644 --- a/src/Mod/Path/PathScripts/PathGuiInit.py +++ b/src/Mod/Path/PathScripts/PathGuiInit.py @@ -80,13 +80,14 @@ def Startup(): # If camotics is installed and current enough, import the GUI try: + import camotics r = subprocess.run( ["camotics", "--version"], capture_output=True, text=True ).stderr.strip() major, minor, patch = r.split(".") if int(major) >= 1 and int(minor) >= 2 and int(patch) >= 2: from PathScripts import PathCamoticsGui - except FileNotFoundError: + except (FileNotFoundError, ModuleNotFoundError): pass Processed = True