src/ldtplatform/__init__.py
author cavaliet
Thu, 31 Oct 2013 17:06:01 +0100
changeset 137 00af55cc5e31
parent 135 3b3f954584bd
child 139 f37ac02b98ba
permissions -rw-r--r--
V02.11.06 and ldt requirement 1.51.10

VERSION = (2, 11, 6, "final", 0)

VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2])))


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()