Merge pull request #8182 from vespakoen/opencamlib-support

Update opencamlib imports to support latest version
This commit is contained in:
sliptonic
2023-01-16 16:50:59 -06:00
committed by GitHub
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."