Here is the Project structure -
MAIN Project FOLDER:
file1.py
Directory1
testFile.py
file1.py
is in the Main Project folder.
testFile.py
is under Directory1
.
I need to import file1.py
into testFile.py
.
If I just add
import file1
in testFile.py
, it gives me error - ModuleNotFoundError: No module named 'file1'