File Organization
./helper.py
./caller1.py
./sub_folder/caller2.py
It's fine when importing helper.py
from caller1.py
.
caller1.py
from helper import hello
if __name__ == '__main__':
hello()
but when importing from ./sub_folder/caller2.py
with the exact same code I got the error...
ModuleNotFoundError: No module named 'helper'
I would like to organize files into sub-folders because the project is quite large.