title: Activate a virtualenv with a Python script
body: <p>I want to activate a virtualenv instance from a Python script.</p>
  
  <p>I know it's quite easy to do, but all the examples I've seen use it to run commands within the env and then close the subprocess.</p>
  
  <p>I simply want to activate the virtualenv and return to the shell, the same way that bin/activate does.</p>
  
  <p>Something like this:</p>
  
  <pre><code>$me: my-script.py -d env-name
  $(env-name)me:
  </code></pre>
  
  <p>Is this possible?</p>
  
  <p>Relevant:</p>
  
  <p><em><a href="http://groups.google.com/group/python-virtualenv/browse_thread/thread/15f8a9b0506abeae" rel="noreferrer">virtualenv › Invoking an env from a script</a></em> </p>