I have a project structure like this:
.
├── .venv
| └── bin
| └── python
├── config
│ └── conf.py
├── utils
│ └── test.py
└── requirements.txt
Each of the directories above have an __init__.py file so they should be picked up as a Python package.
I am unable to import config into the utils.test.py script.
The error I encounter is:
File "./utils/test.py", line 2, in <module>
import config.conf
ModuleNotFoundError: No module named 'config'
My Python path is "./.venv/bin/python".
Can someone help me resolve this issue so I can import files from different sub-directories?
Thanks!