server/speedtests_server.fcgi
author Mark Cote <mcote@mozilla.com>
Thu, 13 Jun 2013 01:49:43 -0400
changeset 95 c060e080a875ce9af66e2c5eda626de1e1197289
parent 3 37681257cea65ffc55fe7f4f0d027344131a1200
permissions -rwxr-xr-x
Simpler implementation of default blank password.

#!/usr/bin/env python2.6
import inspect
import os.path
import sys
import web

def execution_path(filename):
  return os.path.join(os.path.dirname(inspect.getfile(sys._getframe(1))),
                      filename)

sys.path.append(execution_path(''))

from speedtests_server import app

web.wsgi.runwsgi = lambda func, addr=None: web.wsgi.runfcgi(func, addr)
app.run()