Welcome to mirror list, hosted at ThFree Co, Russian Federation.

launch.py - dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 27558784a927ca54dba728aa383dc7161a801307 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python3

import subprocess

from gajim import gajim

try:
    p = subprocess.Popen('git rev-parse --short=12 HEAD', shell=True,
                         stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
    node = p.communicate()[0]
    if node:
        import gajim as g
        g.__version__ += '+' + node.decode('utf-8').strip()
except Exception:
    pass

gajim.main()