notmuch/devel/notmuch-web/nmgunicorn.py
David Bremner 126347b694 Import notmuch_0.38.2.orig.tar.xz
[dgit import orig notmuch_0.38.2.orig.tar.xz]
2023-12-01 07:51:09 -04:00

11 lines
229 B
Python

#!/usr/bin/env python3
# to launch nmweb from gunicorn.
from nmweb import urls, index, search, show
import web
app = web.application(urls, globals())
# get the wsgi app from web.py application object
wsgiapp = app.wsgifunc()