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()