I have no idea if there is some standard location in ./FreeCAD folder for the "new import style" modules. And if user should create the __init__.py file manually or not.
not yet. if a directory with name "freecad" is placed in any directory which is in sys.path FreeCAd looks for directories containing init-files (init_gui.py and init.py) inside the freecad directory. So there are allready some options:
- /usr/lib/pythonx.y/dist-packages/freecad
- /usr/lib/freecad/Ext/freecad
- ~/.local/lib/pythonx.y/site-packages/freecad
Maybe we should also add a standart location in .FreeCAD. But I think adding a setup.py and let python deside by it's own where to install the library is the best way. Pip let you install a linked version by
pip instll -e . For using pip the library must be structured like shown here:
https://github.com/looooo/Workbench-Starterkit .