howto reload Python module?
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Sun Sep 2 18:40:50 EDT 2007
On Sun, 02 Sep 2007 13:28:26 -0700, dmitrey wrote:
> my Python module was changed in HDD (hardware disk drive), moreover,
> changed its location (but still present in sys.path). how can I reload a
> func "myfunc" from the module? (or howto reload whole module)?
> Thank you in advance, D.
You're moving the LOCATION of modules while they are running???
WHY???
Nevertheless, and much to my surprise, a quick test suggests that so long
as the new location is in sys.path, reload() continues to do what it is
supposed to do.
--
Steven.
More information about the Python-list
mailing list