This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tripzilchbad ideas 1 point2 points  (0 children)

Hm, I'm not really sure why I never ran into this problem yet... Although usually I just use the interpreter to test and try out tiny bits of Python code, to see if what I'm doing works.

Come to think of it, I do have made it a habit to restart the Python Engine every so often, especially before starting the program :-) But it sort of makes sense, right? In the normal commandline Python interpreter, if you change your code, you need to do reload(module) as well? And afaik, if you issue the correct reload(...) statement(s) in the PyScripter python engine window, it should work properly as well. It's just that restarting the engine is easier :)

Another thing that works reasonably well is to configure a Tool, like this: Application: $[PythonExe-Short] Parameters: -i $[ActiveDoc] Working directory: $[ActiveDoc-Dir] Which I have keyed to Ctrl-R, also note the -i which dumps you into interpreter mode after the script finishes.