Made major improvements to the Mac OS import setup code thanks to troubleshooting from @DrRob.

This commit is contained in:
Jeremy Wright 2014-12-06 22:54:45 -05:00
parent 326c02cd0f
commit 8794d63e06

View File

@ -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