let's say in my working project directory I have this tree structure :
- project
- lib
- monitoring
- analysis.py
- database.py
- monitor.py
- files.py
- server.py
- exec.py
- template
- some HTML files
file: analysis.py
from files import *;
from database import db;
file: files.py
#this script doesn't import from any of them
file: monitor.py
from database import db;
from files import Time, isFileExists
file: database.py
from files import *;
file: server.py
from exec import Run;
from monitoring.files import rootFolder , subContent , ROOTPATH , FOLDERNAME , Time , fullDate;
file: exec.py
from monitoring.analysis import Collect;
My problem occures when I run script exec.py I got : ModuleNotFoundError: No module named 'database'