mcneel / ghpython

A Grasshopper component for Rhino.Python
http://www.food4rhino.com/project/ghpython
118 stars 34 forks source link

Reset engine in RhinoPython results in an error in GhPython #25

Open piac opened 13 years ago

piac commented 13 years ago

Reset engine in RhinoPython results in this error in GhPython (until the user restarts Rhino)

Runtime error (ImportException): No module named scriptcontext Traceback: line 1, in script

piac commented 13 years ago

What happens when the user chooses "Reset engine" from the menu? Should we find a way to constrain it to RhinoPython?

sbaer commented 13 years ago

This is something I need to fix in the internal RhinoPython engine. The scriptcontext module is dynamically set right before script execution and I need to make sure this is properly handled for other systems like ghpython

piac commented 13 years ago

Ok, thank you