Hey, get this! [was: import from database]

Just just at xs4all.nl
Wed Feb 2 10:51:36 EST 2005


In article <4200E5CB.6020508 at holdenweb.com>,
 Steve Holden <steve at holdenweb.com> wrote:

> Just to make things simpler, and (;-) to appeal to a wider audience, 
> here is a program that doesn't use database at all (it loads the entire 
> standard library into a dict) and still shows the error.
> 
> 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.
[ ... ]

Maybe this?:
>          if package:
>              module.__path__ = sys.path

I'm fairly sure this should read

   module.__path__ = ["*db*"]

Just



More information about the Python-list mailing list