Update opencamlib imports to support latest version

This commit is contained in:
Koen Schmeets
2023-01-13 20:46:59 +01:00
parent ea6fb190f1
commit bcf57aec91
3 changed files with 12 additions and 3 deletions

View File

@@ -165,7 +165,10 @@ class PathWorkbench(Workbench):
pass
try:
import ocl # pylint: disable=unused-variable
try:
import ocl # pylint: disable=unused-variable
except ImportError:
import opencamlib as ocl
from Path.Op.Gui import Surface
from Path.Op.Gui import Waterline

View File

@@ -35,7 +35,10 @@ translate = FreeCAD.Qt.translate
# OCL must be installed
try:
import ocl
try:
import ocl
except ImportError:
import opencamlib as ocl
except ImportError:
msg = translate(
"PathSurface", "This operation requires OpenCamLib to be installed."

View File

@@ -34,7 +34,10 @@ translate = FreeCAD.Qt.translate
# OCL must be installed
try:
import ocl
try:
import ocl
except ImportError:
import opencamlib as ocl
except ImportError:
msg = translate(
"path_waterline", "This operation requires OpenCamLib to be installed."