AttributeError: logging module bug ?

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon Dec 21 02:35:54 EST 2009


En Sat, 19 Dec 2009 00:18:26 -0300, Peter <vmail at mycircuit.org> escribió:

> This was somehow unexpected for me, since in a module using logger.py, I  
> could use either import:
>
> from mylogger import logger  # without package name
>
> or
>
> from of.mylogger import logger  # with package name
>
> but this does not seem to work for the class specification in the config  
> file (only the former works).

Then you have a big problem with the Python search path (sys.path): you
should *not* have two different (absolute) ways to refer to the same
module, ever.
If "of" is a package, it should not be listed in sys.path

-- 
Gabriel Genellina




More information about the Python-list mailing list