P
plb
All:
I am struggling with an import problem...
In my package, myapp, I have a module, logging.py. That module,
naturally, imports the library module logging with an 'import logging'
statement. However, when I use 'import myapp.logging' in my script,
the myapp.logging module tries to import itself rather than the library
logging module.
How can I prevent this from happening other than using a name that
doesn't conflict?
--PLB
I am struggling with an import problem...
In my package, myapp, I have a module, logging.py. That module,
naturally, imports the library module logging with an 'import logging'
statement. However, when I use 'import myapp.logging' in my script,
the myapp.logging module tries to import itself rather than the library
logging module.
How can I prevent this from happening other than using a name that
doesn't conflict?
--PLB