Developing modules with ‘pkgutil’
__peter__ at web.de
Thu Apr 16 10:39:39 CEST 2009
Ben Finney wrote:
> At this point I'm stuck. I can't see how to have the
> ‘docutils/__init__.py’ stop shadowing the names in the system-installed
> ‘docutils/__init__.py’, while still doing the namespace shuffle
> necessary to have my in-development module appear part of the wider
> package namespace. What should I be doing instead?
Weird idea. Try putting the following in your __init__.py files:
__path__ = pkgutil.extend_path(__path__, __name__)
If that doesn't work add
to your main script. Repeat for every subpackage.
More information about the Python-list