Find the location of a loaded module
peke at iki.fi
Sun Feb 22 23:10:58 CET 2009
2009/2/21 Gabriel Genellina <gagsl-py2 at yahoo.com.ar>:
> Use packages. Make act1 and act2 packages by creating __init__.py files.
That's how I'd do it too. The code would be also more easy to
understand and maintain:
Alternative solution would be using reload function after changing sys.path.
More information about the Python-list