joha2 / pyrate

This is my pyrate fork. Goal is for me to provide a useful FreeCAD interface.
GNU General Public License v2.0
3 stars 1 forks source link

repair demos #23

Closed mess42 closed 7 years ago

mess42 commented 7 years ago

Since the demos are moved, I can't start the demos from console any more.

$ cd python/pyrate/demos $ python demo_doublet.py Traceback (most recent call last): File "demo_doublet.py", line 39, in from core import raster ImportError: No module named core

joha2 commented 7 years ago

Yeah you cannot start them by simply calling python due to the strange import mechanism. But it is still possible to write: ~/pyrate$ python -m demos.demo_doublet (i.e. to load demo_doublet module as script). Help for python says: -m mod : run library module as a script (terminates option list).