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
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
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
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