I have the following file structure...
> Boo
> ---modA
> ------__init__.py
> ------fileAA.py
> ---modB
> ------__init__.py
> ------fileBB.py
When inside fileBB.py I am doing
from modA.fileAA import <something>
I get the following error:
from modA.fileAA import <something>
ModuleNotFoundError: No module named 'modA'
Note that the __init__.py files are empty and using Python 3.
What am I missing or doing wrong here?
python3 fileBB.pydirectly then it won't look up the tree for modules.__init__.pyin Boo ?sys.path.append('../')before the import in this scenario and it has worked in the past.