I have a module that conflicts with the built-in module. For example, the myapp.email module defined in myapp/email.py .
I can reference myapp.email anywhere in my code without any problems. However, I need to access the built-in email module from my email module.
It only finds itself and therefore raises ImportError since myapp.email does not have a message_from_string method. import email causes the same problem when I try email.message_from_string .
Is there any built-in support for this in Python, or am I stuck in renaming my email module to something more specific?
python python-import
Cory Aug 03 '09 at 21:34 2009-08-03 21:34
source share