Mercurial > hg > GlobalNeighbors
diff wsgiapp.py @ 23:6891c5523b69
load with neighbors :)
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 25 Jun 2017 18:13:43 -0700 |
parents | 811adc9736eb |
children |
line wrap: on
line diff
--- a/wsgiapp.py Sun Jun 25 17:45:19 2017 -0700 +++ b/wsgiapp.py Sun Jun 25 18:13:43 2017 -0700 @@ -15,8 +15,11 @@ # XXX use a default not really appropriate for production cities1000 = os.path.join(here, 'tests', 'data', 'cities1000.txt') assert os.path.exists(cities1000) +neighbors = '/home/jhammel/GlobalNeighbors/neighbors.dat' +assert os.path.exists(neighbors) # WSGI App -application = PassthroughFileserver(GlobalHandler(cities1000)) +application = PassthroughFileserver(GlobalHandler(cities1000, + neighbors_file=neighbors)) print ("Finished loading application") sys.stdout.flush()