title: Supervisor keep huey python running
body: <p>I'm trying to get supervisor to monitor and maintain a python script that that's using Huey (a redis type queue).</p>
  
  <p>my Supervisor program config looks like this:</p>
  
  <pre><code>[program:smsbot_handler]
  directory=/home/ubuntu/virt_env/virt1/app/
  command=/home/ubuntu/virt_env/virt1/bin/huey_consumer.py main.huey --threads=3
  stdout_logfile=/home/ubuntu/smsbot_handler_log.txt
  autostart=true
  autorestart=true
  environment=PYTHONPATH="/home/ubuntu/virt_env/virt1/app:$PYTHONPATH"
  redirect_stderr=true
  </code></pre>
  
  <p>Can anyone give me any clues as why this doesn't work? All i get in my log file is:</p>
  
  <pre><code>Error importing main.huey
  </code></pre>
  
  <p>It's really starting to get to me!</p>