-
ResetScriptEngine before running
Would it be possible to introduce command ( short cut ) what is resetting Script Engine and then running script.
If some code outside of the code editor is changed then it is not used..
-
Raul,
does "reload" solve your problem?
import yourCustomLibrary as cl
reload (cl)
-
Senior Member
I would rather implement some sort of file watching system that notices your file changed and perform the appropriate action. Am I correct in assuming that you are importing a custom module in your main python script?
-
thx,
reload function works.
i try to develop reusable code in pyDev and projects them selves in Rhino Python Editor (it is easy to execute code there)
file watching is good idea and easy to implement using sticky dictionary.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules