title: Environment $PATH different when using venv
body: <p>I'm using PyCharm on a mac (OSX mavericks) to run a simple script shown below. All it does is print the <code>PATH</code> variable. I have a virtualenv in the project directory. I added a Run Configuration in PyCharm and tried it with different Pythons:</p>
  
  <pre><code># file mytest.py
  import os
  print "PATH: ", os.environ['PATH']
  </code></pre>
  
  <p>When I run with the system default python (/usr/bin/python) it prints the correct value for PATH (i.e. the PATH as I have configured in my .bash_profile file,) which is kind of long and contains many directories.</p>
  
  <p>But when I choose the venv's Python, the path is reduced to only: <code>/usr/bin:/bin:/usr/sbin:/sbin:/Users/myname/projects/myproj/venv/bin</code></p>
  
  <p>This doesn't happen if I run the script from a terminal window. In this case it shows the correct PATH for both the system's python and the venv python. It also doesn't happen if I deactivate the venv and run <code>venv/bin/python mytest.py</code>.</p>
  
  <p>Anyone knows how to make the correct PATH value be set when running from PyCharm and using venv?</p>