I'm writing Python scripts for FreeCAD on Macos.
My imports (like 'import FreeCAD') work when I run the code inside/under FreeCAD but in my IDE (Eclipse with PyDev) they are reported 'Unresolved'.
Naturally this is because the IDE cannot know where to look for those definitions that are embedded in the FreeCAD.app Macos bundle.
But where are they inside there so I can tell Eclipse to look for them in therre, I have not been able to find them.
I printed a complete list of Python library search paths from within FreeCAD Python console but it is bit daunting to try and error each of these possible locations so help would be appreciated:
Code: Select all
/Applications/FreeCAD.app/Contents/Mod
/Applications/FreeCAD.app/Contents/lib64
/Applications/FreeCAD.app/Contents/lib
/Applications/FreeCAD.app/Contents/Mod/Drawing
/Applications/FreeCAD.app/Contents/Mod/Inspection
/Applications/FreeCAD.app/Contents/Mod/Idf
/Applications/FreeCAD.app/Contents/Mod/Part
/Applications/FreeCAD.app/Contents/Mod/Robot
/Applications/FreeCAD.app/Contents/Mod/Arch
/Applications/FreeCAD.app/Contents/Mod/Path
/Users/nyholku/Library/Preferences/FreeCAD/Mod/.DS_Store
/Applications/FreeCAD.app/Contents/Mod/Mesh
/Applications/FreeCAD.app/Contents/Mod/Raytracing
/Applications/FreeCAD.app/Contents/Mod/Material
/Applications/FreeCAD.app/Contents/Mod/Web
/Applications/FreeCAD.app/Contents/Mod/Complete
/Applications/FreeCAD.app/Contents/Mod/Import
/Applications/FreeCAD.app/Contents/Mod/Test
/Applications/FreeCAD.app/Contents/Mod/Draft
/Applications/FreeCAD.app/Contents/Mod/Points
/Applications/FreeCAD.app/Contents/Mod/Start
/Users/nyholku/Library/Preferences/FreeCAD/Mod/cloud9
/Applications/FreeCAD.app/Contents/Mod/Spreadsheet
/Applications/FreeCAD.app/Contents/Mod/Fem
/Applications/FreeCAD.app/Contents/Mod/OpenSCAD
/Applications/FreeCAD.app/Contents/Mod/MeshPart
/Applications/FreeCAD.app/Contents/Mod/Plot
/Applications/FreeCAD.app/Contents/Mod/Ship
/Applications/FreeCAD.app/Contents/Mod/PartDesign
/Applications/FreeCAD.app/Contents/Mod/Image
/Applications/FreeCAD.app/Contents/Mod/ReverseEngineering
/Applications/FreeCAD.app/Contents/Mod/Sketcher
/Applications/FreeCAD.app/Contents/bin
/Library/Python/2.7/site-packages/pip-1.4.1-py2.7.egg
/Applications/Eclipse-Neon.app/Contents/MacOS
/Applications/FreeCAD.app/Contents/lib/python27.zip
/Applications/FreeCAD.app/Contents/lib/python2.7
/Applications/FreeCAD.app/Contents/lib/python2.7/plat-darwin
/Applications/FreeCAD.app/Contents/lib/python2.7/plat-mac
/Applications/FreeCAD.app/Contents/lib/python2.7/plat-mac/lib-scriptpackages
/Applications/FreeCAD.app/Contents/lib/python2.7/lib-tk
/Applications/FreeCAD.app/Contents/lib/python2.7/lib-old
/Applications/FreeCAD.app/Contents/lib/python2.7/lib-dynload
/Applications/FreeCAD.app/Contents/lib/python2.7/site-packages
/Applications/FreeCAD.app/Contents/libexec/matplotlib/lib/python2.7/site-packages
/Applications/FreeCAD.app/Contents/libexec/numpy/nose/lib/python2.7/site-packages
/Library/Python/2.7/site-packages
/Applications/FreeCAD.app/Contents/lib/
/Users/nyholku/Library/Preferences/FreeCAD/Macro
/Applications/FreeCAD.app/Contents/Macro
/Users/nyholku/Library/Application Support/FreeCAD/Mod