I have a project where the main directory is called app. I've add an __init__.py at the root of app and there is a config.py also at the root.
However, when I try to call import app.config or from app import config in the examples.simple_schema.consumer.py or examples.simple_schema.producer.py directory and run the scripts therein I get the error ModuleNotFoundError: No module named 'app'.
├── README.md
├── app
│ ├── __init__.py
│ ├── config.py
│ ├── examples
│ └── simple_schema
│ ├── __init__.py
│ ├── consumer.py
│ └── producer.py
├── requirements.txt