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?