Import a module from parent package
Peter L. Buschman
plb at iotk.com
Sat Mar 20 09:42:34 EST 2004
Thanks for the info guys! :)
--PLB
Peter Hansen <peter at engcorp.com> wrote in message news:<UcWdnUQuiJFZHcbdRVn-sw at powergate.ca>...
> 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