title: Pycharm importing shutil from *.pyi instead of *.py
body: <p><strong>Setup:</strong></p>
  
  <p>OSX Sierra 10.12.6</p>
  
  <p>Pycharm Community (2018.1.4)</p>
  
  <p>pyenvs + pyenv-virtualenv:</p>
  
  <pre><code>2.7.15/envs/DAEnv (created from /Users/milena/.pyenv/versions/2.7.15)
  2.7.15/envs/python2 (created from /Users/milena/.pyenv/versions/2.7.15)
  3.7.0/envs/python3 (created from /Users/milena/.pyenv/versions/3.7.0)
  DAEnv (created from /Users/milena/.pyenv/versions/2.7.15)
  python2 (created from /Users/milena/.pyenv/versions/2.7.15)
  python3 (created from /Users/milena/.pyenv/versions/3.7.0)
  </code></pre>
  
  <p>Project interpreter is setup to use DAEnv</p>
  
  <p><strong>Problem:</strong></p>
  
  <p>importing private methods from shutil (example below) gives Cannot find reference. </p>
  
  <pre><code>from shutil import _basename
  </code></pre>
  
  <p>When I "click" on shutil, it redirects to <strong>/Applications/PyCharm\ CE.app/Contents/helpers/typeshed/stdlib/2/shutil.pyi</strong> instead of <strong>/Users/milena/.pyenv/versions/2.7.15/lib/python2.7/shutil.py</strong></p>
  
  <p><strong>Solution?</strong></p>
  
  <p>May it be connected with .bash_profile that is configured as part of 
  <a href="https://github.com/pyenv/pyenv-virtualenv" rel="nofollow noreferrer">pyenv-virtualenv</a> configuration? PyCharm is not inheriting bash profile? </p>
  
  <p>How to tell PyCharm to use .py instead of .pyi?</p>
  
  <p>How to tell Pycharm to use my .bash_profile?</p>
  
  <p>I'm in the dark here.</p>