Mercurial > hg > GlobalNeighbors
view wsgiapp.py @ 5:7e27e874655b
test a larger grid + move distance insertion to its own function
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sat, 24 Jun 2017 15:16:10 -0700 |
parents | 5dba84370182 |
children | 811adc9736eb |
line wrap: on
line source
""" WSGI app as appropriate for gunicorn """ import os from globalneighbors.web import GlobalHandler # paths here = os.path.dirname(os.path.abspath(__file__)) data = os.path.join(here, 'data') cities1000 = os.path.join(data, 'cities1000.txt') # WSGI App app = GlobalHandler(cities1000)