How to change the source path of a project?
My project structure is look like this:
Inside, test2_main.py, I run "from test1 import x", however,
Traceback (most recent call last):
from test1 import x
ModuleNotFoundError: No module named 'test1'
I do want to input in this way, how can I solve it?
Please sign in to leave a comment.
Hi, you can try marking the "python" directory as source root
https://www.jetbrains.com/help/pycharm/project-structure-dialog.html#e4286cf4
I tired to change test1 as the working directory, but it didn't work