comparison wsgiapp.py @ 0:5dba84370182

initial commit; half-working prototype
author Jeff Hammel <k0scist@gmail.com>
date Sat, 24 Jun 2017 12:03:39 -0700
parents
children 811adc9736eb
comparison
equal deleted inserted replaced
-1:000000000000 0:5dba84370182
1 """
2 WSGI app as appropriate for gunicorn
3 """
4
5 import os
6 from globalneighbors.web import GlobalHandler
7
8 # paths
9 here = os.path.dirname(os.path.abspath(__file__))
10 data = os.path.join(here, 'data')
11 cities1000 = os.path.join(data, 'cities1000.txt')
12
13 # WSGI App
14 app = GlobalHandler(cities1000)