I have a messages folder(package) with __init__.py
file and another module messages_en.py
inside it. In __init__.py
if I import messages_en
it works, but __import__
fails with "ImportError: No module named messages_en"
import messages_en # it works
messages = __import__('messages_en') # it doesn't ?
I used to think 'import x' is just another way of saying __import__('x')