+ Reply to Thread
Results 1 to 4 of 4

Thread: ResetScriptEngine before running

  1. #1

    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..

  2. #2
    Raul,
    does "reload" solve your problem?

    import yourCustomLibrary as cl
    reload (cl)

  3. #3
    Senior Member Steve Baer's Avatar
    Join Date
    Apr 2010
    Location
    Seattle
    Posts
    1,464
    Blog Entries
    19
    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?

  4. #4
    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.

+ Reply to Thread

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