title: Upstart problem with virtualenv - Python/Ubuntu
body: <p>I'm using upstart in order to start this script:</p>
  <pre><code>pre-start script
      sudo export WORKON_HOME=~/.envs
      sudo source /usr/local/bin/virtualenvwrapper.sh
      sudo workon env1
  end script
  
  start on runlevel [2345]
  stop on runlevel [!2345]
  
  exec python /home/radiant/www/staging/django_project/manage.py celerycam &gt; /home/radiant/www/staging/logs/celerycam.log
  
  respawn
  
  respawn limit 10 90
  </code></pre>
  <hr />
  <p>Without the <code>pre-start script</code> it works, with the script block I get this:</p>
  <blockquote>
  <p>start: Job failed to start</p>
  </blockquote>
  <hr />
  <h2>My fix:</h2>
  <p>Instead of sourcing using the Virtual Environment's python interpreter works fine :)</p>
  <p>should have thought about this before!</p>
  <hr />
  <p>Any ideas what this could be?</p>