gajim-plural/gajim/__init__.py
Philipp Hörist 5d2c2e955f 0.99.1
2018-02-08 21:33:06 +01:00

12 lines
269 B
Python

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