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

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'launch.py')
-rwxr-xr-xlaunch.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/launch.py b/launch.py
index 20e03a7b7..cc9941e41 100755
--- a/launch.py
+++ b/launch.py
@@ -1,4 +1,16 @@
#!/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()