I have read a couple of threads on StackOverflow but did not find any answer that has fixed my problem. I'm pretty new to Python and cannot figure out how does modeling system works. I do understand the difference between module and package, but that does not help me with my problem. Here goes:
Here's my project structure:
venv/
root/
    commons/
        config.py
    main/
        main.py
Here's my config.py:
class Config:
...
Here's my main.py
from commons.config import Config
...
when running (venv) python3 root/main/main.py I get ModuleNotFoundError: No module named 'config'. What am I doing wrong? It is a problem with my app? with my main.py? With the way I execute my main.py?
Execution is done using Python 3.9 on MacOS
 
     
    