Consider I have a project with the following structure:
A/a1.py
A/B/b1.py
A/B/C/c1.py
D/E/F/f1.py
main.py
I need to do the following imports
main.py needs to import a1
a1 needs to import b1
b1 needs to import c1
c1 needs to import f1
I am having trouble understanding how to do this correctly:
My current try is:
main.py -> import A.a1
b1.py -> import A.a1
c1.py -> import A.B.b1
c1.py -> import D.E.F.f1
The program is called from the main.py. This works, but the IDE is totally confused.
What is the correct way to do this?
Some background to the question
The background for the structure is. I have a main.py which is an python-dash-app and then I have one folder for backend and frontend and the frontend has a folder for the tabs and a tab needs to access code from the backend.