Skip to content Skip to sidebar Skip to footer

Pycharm Not Adding Sources Root To `sys.path`

In a run configuration in PyCharm I've check both: Add content roots to PYTHONPATH Add source roots to PYTHONPATH But I can't import files relative to my sources root. This is a

Solution 1:

I found the solution here:

https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000164624-SOLVED-pycharm-seem-to-fail-to-add-to-PYTHONPATH

Just delete the .idea project directory and re-create the project to fix the problem.

Post a Comment for "Pycharm Not Adding Sources Root To `sys.path`"