Hey there,
I have a quick question: how come the Part Design libraries are installed into Mod/PartDesign? I see in the CMake file there is a comment saying that they must go where the __init__.py file is, but why only Part Design?
Part Design libs install location
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Part Design libs install location
No, we don't use the __init__.py mechanism so far. The module directories are added directly to the python path.
There are different cMake mechanisms to move the files in the build. E.g. on Windows we don't use the INSTALL target, the files get moved/created by the compiler and some cMake scripts which moving additional files and libs...
There are different cMake mechanisms to move the files in the build. E.g. on Windows we don't use the INSTALL target, the files get moved/created by the compiler and some cMake scripts which moving additional files and libs...
Stop whining - start coding!
Re: Part Design libs install location
Yes, we do! PartDesign has some sub-directories and in order to load the Python modules there we e.g. have to do:No, we don't use the __init__.py mechanism so far. The module directories are added directly to the python path.
Code: Select all
from PartDesign.WizardShaft import Shaft
Code: Select all
import PartDesign
Code: Select all
import PartDesign
Re: Part Design libs install location
Ah, that makes sense. I wondered what made it special.