view main.py @ 76:3171d78a7663

Don't require wheel Wheel may not be present on all machines. It is an optional package to be able to create wheel distributen files with setup.py.
author Björn Ricks <bjoern.ricks@intevation.de>
date Mon, 16 Feb 2015 16:28:50 +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)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)