Hey, get this!

Steve Holden steve at holdenweb.com
Wed Feb 2 10:25:19 EST 2005


Bernhard Herzog wrote:

> Steve Holden <steve at holdenweb.com> writes:
> 
> 
>>What *I* would like to know is: who is allowing the import of bsddb.os,
>>thereby somehow causing the code of the os library module to be run a
>>second time.
> 
> 
> I would guess (without actually running the code) that this part is
> responsible:
> 
> 
>>         if package:
>>             module.__path__ = sys.path
> 
> 
> You usually should initialize a package's __path__ to an empty list.
> The __init__ module will take care of modifying it if necessary.
> 
>    Bernhard
> 
Thanks, Bernhard, that appeared to fix the problem. The error certainly 
went away, anyway ... now I can do more experimentation.

regards
  Steve
-- 
Meet the Python developers and your c.l.py favorites March 23-25
Come to PyCon DC 2005          http://www.python.org/pycon/2005/
Steve Holden                           http://www.holdenweb.com/



More information about the Python-list mailing list