Philipp Hörist pushed to branch master at gajim / gajim
Commits: b43811df by Philipp Hörist at 2016-12-23T20:52:24+01:00 Fix getting commit hash for version info
- - - - -
1 changed file:
- src/common/defs.py
Changes:
===================================== src/common/defs.py ===================================== --- a/src/common/defs.py +++ b/src/common/defs.py @@ -23,20 +23,22 @@ ## along with Gajim. If not, see http://www.gnu.org/licenses/. ##
+import subprocess +import sys +import os.path + docdir = '../' -basedir = '../' +basedir = '../' localedir = '../po' - version = '0.16.10.2' -import subprocess + try: - node = subprocess.Popen('hg tip --template "{node|short}"', shell=True, + node = subprocess.Popen('git rev-parse --short=12 HEAD', shell=True, stdout=subprocess.PIPE).communicate()[0] if node: version += '-' + node.decode('utf-8') except Exception: pass
-import sys, os.path for base in ('.', 'common'): sys.path.append(os.path.join(base, '.libs'))
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/b43811df88092d918c0000347dac43cd94b...