From 8794d63e065d11b2076d07f1938ed45c38416e9c Mon Sep 17 00:00:00 2001 From: Jeremy Wright Date: Sat, 6 Dec 2014 22:54:45 -0500 Subject: [PATCH] Made major improvements to the Mac OS import setup code thanks to troubleshooting from @DrRob. --- cadquery/freecad_impl/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cadquery/freecad_impl/__init__.py b/cadquery/freecad_impl/__init__.py index c0f8257..66ed23d 100644 --- a/cadquery/freecad_impl/__init__.py +++ b/cadquery/freecad_impl/__init__.py @@ -85,11 +85,11 @@ def _fc_path(): ]: if os.path.exists(_PATH): return _PATH - else: + elif sys.platform.startswith('darwin'): #Assume we're dealing with a Mac for _PATH in [ + "/Applications/FreeCAD.app/Contents/lib", os.path.join(os.path.expanduser("~"), "Library/Application Support/FreeCAD/lib"), - "/Applications/FreeCAD.app/lib", ]: if os.path.exists(_PATH): return _PATH