9578053 Jan 22 2022 distfiles.gentoo.org/distfiles/gajim-1.3.3-2.tar.gz
This commit is contained in:
parent
a5b3822651
commit
4c1b226bff
1045 changed files with 753037 additions and 18 deletions
19
gajim/__init__.py
Normal file
19
gajim/__init__.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
__version__ = "1.3.3"
|
||||
|
||||
IS_FLATPAK = Path('/app/share/run-as-flatpak').exists()
|
||||
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue