[SciPy-User] How to make sure that a module gets re-loaded

George Nurser gnurser@googlemail....
Sun Oct 25 07:38:55 CDT 2009


2> Hi George, thanks for this explanation
>
> And why does adding a directory to sys.path affect the 'reload'
> behaviour of the modules in that directory?
>
Because it means that python can find the modules. The pythonpath and
.pth files methods also allow python to find modules in that
directory. Otherwise, if ipython is run from a directory different to
the one which contains the module, python will not in general find the
modules.

Whether you can reload the module after that depends on whether it's
pure python.

--George.


More information about the SciPy-User mailing list