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

Fixed error in demo scripts #18

Closed theinze closed 7 years ago

theinze commented 7 years ago

There were imports using old dependences in both scripts demo_mirrors.py and demo_optimize.py, I have fixed this issue, so that both scripts seem to be working again. I also added scripts to the smoke test.

Note, the scripts may have still be working on your site, since you still got the *.pyc of the old dependences in your local installation. Just try to remove them, i.e., rm *.pyc, and run the scripts, you will end up with the following exception:

$ python demo_mirrors.py
Traceback (most recent call last):
  File "demo_mirrors.py", line 38, in <module>
    from core.coordinates import LocalCoordinates
ImportError: No module named coordinates

:-)