diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wsgiapp.py	Sat Jun 24 12:03:39 2017 -0700
@@ -0,0 +1,14 @@
+"""
+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)