Import a module from parent package

Peter Hansen peter at engcorp.com
Fri Mar 19 18:22:44 EST 2004


Peter L. Buschman wrote:

> That way, no matter where the entire "module" package gets installed, the
> regression tests will always be able to find and import their parent modules
> whose functionality they need to test.
> 
> Essentially, this is like referencing ../../submodule from the command-line.

See http://www.python.org/peps/pep-0328.html for what would appear to be 
some related material.

-Peter



More information about the Python-list mailing list