title: How to set virtualenv for a crontab?
body: <p>I want to set up a crontab to run a Python script.</p>
  
  <p>Say the script is something like:</p>
  
  <pre><code>#!/usr/bin/python
  print "hello world"
  </code></pre>
  
  <p>Is there a way I could specify a virtualenv for that Python script to run in? In shell I'd just do:</p>
  
  <pre><code>~$ workon myenv
  </code></pre>
  
  <p>Is there something equivalent I could do in crontab to activate a virtualenv?</p>