I have a project setup like this (tell me if it's wrong):
project/
module_1/
__init__.py
foo.py
module_2/
__init__.py
bar.py
In foo.py:
from module_2 import bar
I get:
ImportError: No module named module_2
However, if I change my project setup to this:
project/
module_1/
__init__.py
foo.py
module_2/
__init__.py
bar.py
it works. How do I fix this?
Thanks