]> git.gir.st - subscriptionfeed.git/blob - app/__main__.py
let all templates inherit from a base template
[subscriptionfeed.git] / app / __main__.py
1 #!/bin/sh
2 ''':'
3 . "`dirname "$0"`/../venv/bin/activate"
4 export YT_CONFIG=/opt/yt/config/config.ini
5
6 exec python3 "$0" "$@"
7 ':'''
8
9 if __package__ is None: # called as ./__main__.py
10 import sys, os
11 sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
12
13 from app import app
14
15 if __name__ == '__main__':
16 app.run(debug=True, port=8000, host="0.0.0.0")
Imprint / Impressum