src/ldt/ldt/__init__.py
author grandjoncl
Mon, 03 Dec 2012 11:03:40 +0100
changeset 1002 f0948f50816b
parent 994 a6a37775a76d
child 1015 5a9f718115d3
permissions -rw-r--r--
modification of initsitedomain command and migration to work when the web_url doesn't start with 'http://'

VERSION = (1, 37, 0, "final", 0)


def get_version():
    version = '%s.%s' % (VERSION[0], VERSION[1])
    if VERSION[2]:
        version = '%s.%s' % (version, VERSION[2])
    if VERSION[3:] == ('alpha', 0):
        version = '%s pre-alpha' % version
    else:
        if VERSION[3] != 'final':
            version = '%s %s %s' % (version, VERSION[3], VERSION[4])
    return version


__version__ = get_version()