3

Possible Duplicate:
Python import with name conflicts

I have a script file called email.py in which I need to import the email module from the Python standard library. Unfortunately, when I do an import email in my email.py file the email.py file itself is imported.

How can I tell Python that I want to import the standard library package?

Cheers

Community
  • 1
  • 1
  • @bgporter just as I said below. – Dawid Nov 08 '11 at 18:50
  • 3
    Although this may be an exact duplicate, the Google found this question (and not the other one) when I searched "python import package from file of same name". So I'm sure glad it's here for the redirect. – medmunds Jan 12 '13 at 00:18

0 Answers0