Set src as PYTHONPATH relative to project, not as an absolute value

The solution at the link below seems to be setting the PYTHONPATH as an absolute path, rather than a relative path.

https://www.jetbrains.com/help/pycharm/2019.1/installing-uninstalling-and-reloading-interpreter-paths.html

The problem with an absolute path is that it differs from one user to another, so this can't be used as a project setting across teams. 

Since that is so obviously wrong, I am sure that I am missing something. So, how should the PYTHONPATH be set please?

Many thanks

Nathan

1 comment
Comment actions Permalink

Hi,

There's no way to set relative paths using Interpreter Paths config. I suggest to generate PYTHONPATH for each user using a custom script, and run it during their environment initialization. 

0

Please sign in to leave a comment.