Implement Refreshing CPython engine
Hello, When creating a script with! # Python3, the button only works once. I have to restart revit for it to work again. Is there a solution?
What happens when you click on the button the second time? What's the script?
The modules of the script.py are .pyd files. During the second click nothing happens.

The script file calls the "main" file. The "main" file calls "OK" (print ("ok")), "BONSOIR" (print ("good evening")), "HELLO" (print ("hello")).
Those modules are only imported once on the first run. So if the print statement is inside the modules it's going to be printed only once
Is there a way to re-import them manually in order to rerun?
Try CTRL+SHIFT+ALT and click on the tool. This will discard the existing engine and will use a new engine. Need to test this more with the cpython as it works very different from the IronPython
I had already tested this manipulation but it does not work. I have an error message then REVIT does not respond.
Thanks anyway.
Hey, @eirannejad is there an ETA for this? How can I help? If you point the way I can spend some time on this as well. I am looking forward to have CPython, ---NEED FOR SPEED --- 🚀