~sircmpwn/lists.sr.ht

lists.sr.ht/run.py -rw-r--r-- 287 bytes View raw
96e3c7c2Eli Schwartz setup.py: use importlib.resources from python 3.7 to find core.sr.ht Makefile 25 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
from listssrht.app import app
from srht.config import cfg, cfgi

import os

app.static_folder = os.path.join(os.getcwd(), "static")

if __name__ == '__main__':
    app.run(host=cfg("lists.sr.ht", "debug-host"),
            port=cfgi("lists.sr.ht", "debug-port"),
            debug=True)