Python Interpreter Paths aren't per project

When you choose path's for the Python Interpreter in the settings for project1, then try to set the path's for project 2, the paths for 1 are still there. I had assumed that these were per project settings because they are under the Project Settings header in the pane on the left.

Is this a bug, a wrong assumption, or perpahs a trick I'm missing?

Thanks

3 comments
Comment actions Permalink

This is a wrong assumption; the paths are indeed global. You can use "Add Content Root" button in Settings | Project Structure to add a per-project directory to PYTHONPATH.

0
Comment actions Permalink

I used 'Add Content Root' to add lib files (e.g. Django) and related projects,

But when I use 'Open classes (Ctrl+N)' to locate a class in this project,

all classes located in all libs and related projects are listed, even I unchecked "Include non-project classes",

How to mark files located in libs and related projects as "non-project files"?

0
Comment actions Permalink

If you add Django to the list of the interpreter paths in Settings | Python Interpreters and not as a content root, it will be considered a non-project file.

0

Please sign in to leave a comment.