modules and generated code

Fredrik Lundh fredrik at pythonware.com
Wed Nov 15 12:40:08 EST 2006


Nigel Rantor wrote:

> Basically, I want the same top-level package to have bits of code in 
> different directories, but because Python requires the __init__.py file 
> it only picks up the first one in PYTHONPATH.

would a single __init__.py function that does from-import-* on the 
various implementation modules solve your problem?

</F>




More information about the Python-list mailing list