I have examined many questions that have been asked before but I couldn't find a solution to my problem.
I'm running python3 folder1/script1.py command on the terminal in the root directory but I get the error ModuleNotFoundError: No module named 'folder2'. I added __ init __.py to the folders but still couldn't find a solution.
My project directory is like this:
└── root
├── folder1
│ ├── script1.py
│
└── folder2
├── module1.py
module1.py:
def say_hello():
print('hello')
scipt1.py:
from folder2 import module1
module1.say_hello()