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

+ Reply to Thread
Results 1 to 3 of 3

howto reload Python module?

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


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

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

+ Reply to Thread

Similar Threads

  1. [python 3.0] reload() gone?
    By Application Development in forum Python
    Replies: 2
    Last Post: 08-31-2007, 04:25 PM
  2. Re: [python 3.0] reload() gone?
    By Application Development in forum Python
    Replies: 0
    Last Post: 08-31-2007, 04:13 PM
  3. Does python 2.3.3 pty module has a bug?
    By Application Development in forum Python
    Replies: 0
    Last Post: 06-08-2007, 06:18 AM
  4. Replies: 0
    Last Post: 07-09-2005, 12:25 PM
  5. EXPECT module, howto to perform a "new page" ?
    By Application Development in forum Perl
    Replies: 2
    Last Post: 12-03-2003, 05:58 AM