title: How to use virtualenvwrapper in Supervisor?
body: <p>When I was developing and testing my project, I used to use virtualenvwrapper to manage the environment and run it:</p>
  
  <pre><code>workon myproject
  python myproject.py
  </code></pre>
  
  <p>Of course, once I was in the right virtualenv, I was using the right version of Python, and other corresponding libraries for running my project.</p>
  
  <p>Now, I want to use Supervisord to manage the same project as it is ready for deployment. The question is what is the proper way to tell Supervisord to activate the right virtualenv before executing the script? Do I need to write a separate bash script that does this, and call that script in the command field of Supervisord config file?</p>