title: virtualenv activation on windows
body: <p>I have installed virtualenv 1.10 on a Windows 7 machine with Python 2.7 on it.</p>
  
  <p>I have created a virtual env called TESTENV. It is located in C:\</p>
  
  <p>If I run <code>C:\TESTENV\Scripts\activate</code> and then type <code>python</code> followed by:</p>
  
  <pre><code>import sys
  print sys.prefix
  </code></pre>
  
  <p>it outputs <code>C:\TESTENV</code>, as exprected.</p>
  
  <p>But if I run <code>D:\virtualenv_test.py</code> (which is a script containing the two lines of code I used above) it outputs <code>C:\Python27</code>.</p>
  
  <p>I tried adding a shebang line to the script but that doesn't work on Windows.</p>
  
  <p>Why is the script not running in the context of the virtual environment?</p>