Re: How to keep a module with the same name as a module it is importing from importing itself?

2005-02-08 Thread plb
Good call! The following snippet solved my problems portably. path = sys.path[1:] file, filename, description = imp.find_module('logging', path) logging = imp.load_module('logging', file, filename, description) Thanks! --Peter -- http://mail.python.org/mailman/listinfo/python-list

Handling import conflicts when module has the same name as a library module that it needs to import?

2005-02-08 Thread plb
myapp.logging module instead of the one in the standard library. How can I ensure that my logging module doesn't try to import itself? --PLB -- http://mail.python.org/mailman/listinfo/python-list

Handling import conflicts when module has the same name as a library module that it needs to import?

2005-02-08 Thread plb
myapp.logging module instead of the one in the standard library. How can I ensure that my logging module doesn't try to import itself? --PLB -- http://mail.python.org/mailman/listinfo/python-list

How to keep a module with the same name as a module it is importing from importing itself?

2005-02-08 Thread plb
dule 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 -- http://mail.python.org/mailman/listinfo/python-list