title: code passenger_wsgi python
body: <p>Can someone explain why this code shows a new version of Python on Dreamhost ?</p>
  
  <pre><code>import sys,os
  # Force Passenger to run our virtualenv python
  INTERP = "/home/site/env/bin/python"
  if sys.executable != INTERP: os.execl(INTERP, INTERP, *sys.argv)
  def application(environ, start_response):
      start_response('200 OK', [('Content-type', 'text/plain')])
      return ["Hello, world!" + sys.version]
  </code></pre>
  
  <p>While this code shows an old version :</p>
  
  <pre><code>#!/home/site/env/bin/python
  import sys
  def application(environ, start_response):
      start_response('200 OK', [('Content-type', 'text/plain')])
      return ["Hello, world!" + sys.version]
  </code></pre>