I know that there are many similar questions but none of them addresses my specific problem: I have the following folder structure:
project/
main.py
/subDirec/
__init__.py
function1.py
function2.py
I want to import function2 into function1 and call function1 from main.
In function1 I call
import subDirec.function2
and in main:
import subDirec.function1
It works when I am calling main.py but not when I call function1.py. If I change it in function1 to:
import function2
it works in function1 but not in main anymore.