How to avoid opening files from 'python_stubs' directory?

Pressing Ctrl+B with the cursor placed on the line with import statement opens the file of module which is being imported. However this file is the copy of the original file placed in the PyCharm's stubs directory like:
c:\Documents and Settings\pdobrogost\.PyCharm30\system\python_stubs\-890172276\path\to\module.py

I'm on Windows, and project source is on remote Linux machine which I access through samba (mapped network drive on Windows' side). I have remote interpreter set for this project.
In Project Settings->Console->Python Console I added mapping in 'Path mappings' mapping one directory like this:
x:\projects\project_name\some_subdirectory -> /home/users/pdobrogost/projects/project_name/some_subdirectory, where x is a mapped drive pointing to the remote Linux host with project sources. This however does not help.


How can I avoid opening files from 'python_stubs' directory?
0
Avatar
Permanently deleted user
Is there any way to get commercial support from JetBrains?
0
Sure, please use http://www.jetbrains.com/support/ to contact the technical support team directly.
Support package is already included with PyCharm license.
0
Avatar
Permanently deleted user
0
Avatar
Permanently deleted user
For anyone interested see http://youtrack.jetbrains.com/issue/PY-10671 (PyCharm keeps going to definition inside stub files) Feel free to vote on this :)
0

请先登录再写评论。