This is a simple and clean example how to structure a Python project such that (absolute/relative) imports don't get messed up.
- Python 3
There are three python files included in this example. The idea is that all of them can be run individually and the imports still work if run from the project root:
python main.py
python app/addition.py
python app/conversion.py
Alternatively you can also just run:
bash run.sh
Inspired by this answer on stack overflow.