Verified Commit 0138c5c9 authored by André's avatar André
Browse files

Generate local version identifier only during development

Fixes #10678.
parent 616211c5
Pipeline #8550 passed with stages
in 3 minutes and 2 seconds
import subprocess
import sys
from pathlib import Path
......@@ -8,12 +7,3 @@
portable_path = Path(sys.executable).parent / 'is_portable'
IS_PORTABLE = portable_path.exists()
try:
p = subprocess.Popen('git rev-parse --short=12 HEAD', shell=True,
stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
node = p.communicate()[0]
if node:
__version__ += '+' + node.decode('utf-8').strip()
except Exception:
pass
#!/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()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment