title: Automatically load a virtualenv when running a script
body: <p>I have a python script that needs dependencies from a virtualenv. I was wondering if there was some way I could add it to my path and have it auto start it's virtualenv, run and then go back to the system's python.</p>
  
  <p>I've try playing around with autoenv and <code>.env</code> but that doesn't seem to do exactly what I'm looking for. I also thought about changing the shabang to point to the virtualenv path but that seems fragile.</p>