Hi all
Rhino doesn’t update changes I make on my Python scripts not until I close and re-open Rhino before the changes are recognized. Any possible solution to this?
Thanks
Hi all
Rhino doesn’t update changes I make on my Python scripts not until I close and re-open Rhino before the changes are recognized. Any possible solution to this?
Thanks
Hello,
Yes this is because IronPython caches the previously executed script to save time rerunning it.
Let’s say your script is saved in a file called mymodule.py
. You can use this script at the top of your file to reload it each time it runs:
import mymodule
from imp import reload
reload(mymodule)
Thanks!