I have the following directory structure (I didn't write this so I'm assuming it has to work somehow?):
tool.py
core/
__init__.py
config.py
common.py
tool.py
indirectly imports config.py
, and config.py
has a line from common import foo
, which displays the following error:
...
File "...\core\config.py", line 5, in <module>
from common import foo
ImportError: No module named 'common'
It probably isn't relevant, but I'm using Python 3.4 on Windows, and the tool.py
directory is in the system path (I'm simply running it as tool
).