How to change the source path of a project? Follow
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
I tired to change test1 as the working directory, but it didn't work