Force reload of imported modules

52 views
Skip to first unread message

picurlpy

unread,
Nov 9, 2007, 3:15:39 PM11/9/07
to PyScripter
Hello,

first of all congratulations to PyScripter, it exactly fits my
needs...

There is just one burning question: how can I force PyScripter to
reload imported modules?

I refactored my script to many external modules. Although I re-import
these modules via Run -> Import Module after making changes, my main
program still uses old versions of the modules. So I get often weird
errors that refer to non-existing code.

Thanks,

Franz

PyScripter

unread,
Nov 9, 2007, 5:39:42 PM11/9/07
to PyScripter
The safest way is to use a remote engine (http://
pyscripter.googlepages.com/remotepythonengines) and reinitialize the
engine.

heylam

unread,
Nov 16, 2007, 4:41:13 AM11/16/07
to PyScripter
I agree with the original poster.
Reinitializing the (remote) engine should not be needed to apply
changes made in an imported module.
In IDLE it is not needed also, and that seems better.
Reply all
Reply to author
Forward
0 new messages