Mercurial > odfcast
view main.py @ 78:b7e4f50c75ba
Add six != 1.9 to the requirements.
According to Björn, the version of six in Debigan wheezy is too old and
odfcast needs at least version 1.9.
For some reason it was missing from requirements.txt, so we add it now.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Wed, 25 Feb 2015 18:57:25 +0100 |
parents | dcf870775c26 |
children |
line wrap: on
line source
# -*- coding: utf-8 -*- if __name__ == "__main__": from odfcast import app server_name = app.config['SERVER_NAME'] if server_name and ':' in server_name: host, port = server_name.rsplit(':', 1) port = int(port) else: port = 5000 host = "127.0.0.1" app.run(host=host, port=port)