aboutsummaryrefslogtreecommitdiff
path: root/doc/api/python/example_about.py
blob: b4445450ac3f961fe2f2589c6051489afe034e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python
# vim: set fileencoding=utf-8 sw=4 sts=4 et :

"""A simple example showing how to use Paludis version constants"""

import paludis

print("Built using Paludis " + str(paludis.VERSION_MAJOR) + "." + str(paludis.VERSION_MINOR) +
        "." + str(paludis.VERSION_MICRO) + paludis.VERSION_SUFFIX),

if paludis.GIT_HEAD:
    print 'git-' + paludis.GIT_HEAD