(this mostly aims at new modules and extension modules which want to use pip) - any module having problems with nameclashes can use this syntax (from freecad import module) - current imports still work (backward cobatibility) - python extension moduels can be installed (pip) to python std path (eg.: site-packages) - adding app, gui to the new freecad package: ``` from freecad import app from freecad import gui ``` - syntax for importing c++ extension will not change ``` import FreeCAD as App import FreeCADGui as Gui ```
4 lines
88 B
Python
4 lines
88 B
Python
import pkgutil
|
|
__path__ = pkgutil.extend_path(__path__, __name__)
|
|
|
|
import FreeCAD as app |