howto reload Python module? - Python
This is a discussion on howto reload Python module? - Python ; 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....
-
howto reload Python module?
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.
-
Re: howto reload Python module?
dmitrey schrieb:
> 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.
By using *drumroll* the reload function!
diez
-
Re: howto reload Python module?
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.
Similar Threads
-
By Application Development in forum Python
Replies: 2
Last Post: 08-31-2007, 04:25 PM
-
By Application Development in forum Python
Replies: 0
Last Post: 08-31-2007, 04:13 PM
-
By Application Development in forum Python
Replies: 0
Last Post: 06-08-2007, 06:18 AM
-
By Application Development in forum Perl
Replies: 0
Last Post: 07-09-2005, 12:25 PM
-
By Application Development in forum Perl
Replies: 2
Last Post: 12-03-2003, 05:58 AM