I have a project like this:
foo/
| main.py
| bar/
| | module1.py
| | module2.py
| | __init__.py
with main.pydoing import bar.module1and module1.pydoing import module2.
This works using python 2.6, but not python 3.1 ( ImportError: No module named module2)
Why has the behavior changed? How to restore it?
source
share