I have a project directory structure as follows:
rootdir/
somefile.py
- proj/
- __init__.py
- __main__.py
- file1.py
- file2.py
file2 has an import, from file1 import some_module
When I am in rootdir and I call something like import proj.file2.bla_bla as bla_bla from somefile.py
I get an error like
error in file2
cannot find file1 or no such module such as file1
What do you think is going wrong?