title: Can I use Fabric to workon a virtualenv and run a Python application?
body: <p>I have <code>virtualenvwrapper</code> and <code>virtualenv</code> installed on an Ubuntu 11.10 machine. I currently use a shell script to <code>workon</code> a virtualenv, and then run a Python application. Something like this:</p>
  
  <pre><code>workon $1
  export PYTHONPATH=/media/work/application-$2/src
  cd $PYTHONPATH/core
  python startapp.py -option1 $3 -option2 $4 --loglevel=INFO
  </code></pre>
  
  <p>I'd like to switch to Fabric rather than bash (with an eventual goal of making this invocation cross-platform). Can I use Fabric, which is itself a Python application, to make these kinds of calls on the local system? (<code>workon</code>, <code>export</code>, <code>python</code>)</p>