I have the following project structure and I would like to import the function "get()", which is inside the main.py from the Folder_A, into the model.py file from Folder_BA.
Project
|_____ Folder_A
| |_____ main.py
| |_____ model.py
| |_____ constants.py
| |_____ functions.py
|
|_____ Folder_B
|_____ Folder_BA
| |_____ main.py
| |_____ model.py
| |_____ functions.py
|
|_____ Folder_BB
|_____ main.py
|_____ model.py
|_____ functions.py
I tried coding inside the model.py file from Folder BA the following code but it didnt work:
from Folder_A.main import get
ModuleNotFoundError: No module named 'Folder_A'
Thank you.