summaryrefslogtreecommitdiff
path: root/src/leap/__init__.py
blob: 8846fbcd9ae8b3649695a7a487506e3f4ade9e29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- encoding: utf-8 -*-

__all__     = ['mx']
__author__  = version.authors
__version__ = version.getVersion()

from leap import mx
from leap.mx import util
from leap.mx.util import version


def _print_authors_nicely():
    if hasattr(version, 'authors'):
        assert isinstance(version.authors, list)
        if len(version.authors) > 0:
            first = version.authors.pop()
            __author__ = (" ".join(first[:2]))
            if len(version.authors) > 0:
                for auth in version.authors:
                    joined = " ".join(auth[:2])
                    __author__ += ("\n%s" % joined)
                    

print "Version: %s" % version.getVersion()
print "Authors: %s" % _print_authors_nicely()