Find the location of a loaded module

Pekka Klärck peke at
Sun Feb 22 23:10:58 CET 2009

2009/2/21 Gabriel Genellina <gagsl-py2 at>:
> Use packages. Make act1 and act2 packages by creating files.

That's how I'd do it too. The code would be also more easy to
understand and maintain:

import act1
import act2


Alternative solution would be using reload function after changing sys.path.


More information about the Python-list mailing list