author | Mark Cote <mcote@mozilla.com> |
Tue, 04 Oct 2011 17:10:27 -0400 | |
changeset 76 | 6868be4eb9a99472572dc58dca10d68243796653 |
parent 3 | 37681257cea65ffc55fe7f4f0d027344131a1200 |
permissions | -rwxr-xr-x |
#!/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()