Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 4
    So many complex answers in this discussion. The solution presented here worked for me so easily. Commented May 27, 2019 at 4:39
  • what does "root folder" mean for you? Like the root of the github repo or the package root e.g. something like src? Commented Dec 13, 2021 at 18:17
  • my PYTHONPATH is empty, is that normal? Commented Dec 13, 2021 at 22:09
  • Best and easy solution Commented Nov 16, 2022 at 10:22
  • Still the solution for mono-repos in 2025. Marking "src" and "tests" folders didn't get the correct result, but instead marking their parent dir as "Source Root" made it work for me. Commented Jul 4 at 8:01