diff --git a/src/GEOReverse/__init__.py b/src/GEOReverse/__init__.py index e69de29b..3d9862c7 100644 --- a/src/GEOReverse/__init__.py +++ b/src/GEOReverse/__init__.py @@ -0,0 +1,8 @@ +# this try except attempts to import freecad (lowercase) which is the conda +# package name for FreeCAD (mixed case) upon import the conda package appends +# the sys path for Conda installed FreeCAD, consequently FreeCAD can then be +# found by subsequent import statements through out the code base +try: + import freecad +except: + pass diff --git a/src/GEOUNED/__init__.py b/src/GEOUNED/__init__.py index 062e1300..693b0077 100644 --- a/src/GEOUNED/__init__.py +++ b/src/GEOUNED/__init__.py @@ -3,6 +3,14 @@ # We load the STEP and the materials import sys +# this try except attempts to import freecad (lowercase) which is the conda +# package name for FreeCAD (mixed case) upon import the conda package appends +# the sys path for Conda installed FreeCAD, consequently FreeCAD can then be +# found by subsequent import statements through out the code base +try: + import freecad +except: + pass import FreeCAD,Part import configparser