Here's my project structure
- folder_1
- folder_2
- file1.py
- file2.py
- folder_3
- file3.py
Now I use this command to run file1.py
python folder_1/folder_2/file1.py
But what I found is that python put folder_1/folder_2 into PYTHONPATH. What I want is also put folder_1 into PYTHONPATH, so that file_1.py can import functions into file3.py. Although I can populate PYTHONPATH by myself, I just wonder whether there is any convenient or standard way to do that, because I believe it is a very common scenario.