finding the same package in multiple places

Peter Otten __peter__ at
Wed Jun 30 23:23:42 CEST 2004

Skip Montanaro wrote:

> Let me make it more concrete.  We have a central package, call it
> "central".
> Inside that package are three subpackages, "a", "b" and "c".  Imports thus
> look like
>     import central.a
>     from central import b
>     from central.c import foo
> Now suppose I need to work on subpackage c.  If I create a local package
> called "central" and install my working copy of "c" there, athen adjust
> PYTHONPATH accordingly, I can't import "central.a" or "central.b" any
> longer

I haven't used it myself, but if I read the documentation correctly,
may do what you need.


More information about the Python-list mailing list