Hey, get this!

Just just at xs4all.nl
Thu Feb 3 09:37:43 EST 2005


In article <s9zr7jx213w.fsf at salmakis.intevation.de>,
 Bernhard Herzog <bh at intevation.de> wrote:

> Bernhard Herzog <bh at intevation.de> writes:
> 
> > Steve Holden <steve at holdenweb.com> writes:
> >>          if package:
> >>              module.__path__ = sys.path
> >
> > You usually should initialize a package's __path__ to an empty list.
> 
> Actually, normally it's a list that contains the name of the package
> directory as its only item.  I'm not sure what you should do when you do
> not import from a file system.

If it's a path importer, it could be a cookie, specific to the importer. 
I think in Steve's case initializing __path__ to ["*db*"] should work.

Just



More information about the Python-list mailing list