From 6080b38fb2b6b3c1017bdd34bb7552bc7e26a4a0 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Sun, 22 Nov 2015 00:25:56 +0100 Subject: project restructure make it a proper python package --- watchnews/wsgi.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 watchnews/wsgi.py (limited to 'watchnews/wsgi.py') diff --git a/watchnews/wsgi.py b/watchnews/wsgi.py new file mode 100644 index 0000000..bd157cb --- /dev/null +++ b/watchnews/wsgi.py @@ -0,0 +1,11 @@ +from watchnews import web, data +import os + + +dbpath = os.environ.get("WATCHNEWS_DBPATH") +if not dbpath: + raise Exception("WATCHNEWS_DBPATH must be set") + +data.init_sqlite(dbpath) +application = web.get_app() + -- cgit v1.2.1