diff options
author | André Apitzsch <git@apitzsch.eu> | 2020-11-07 14:39:04 +0300 |
---|---|---|
committer | André Apitzsch <git@apitzsch.eu> | 2020-11-07 14:39:04 +0300 |
commit | 70b6371ace80d6a331faafb6ac0942da217afcd9 (patch) | |
tree | ac274ab9b525716cd690b71ccc8aac4fc76454ab /gajim/__init__.py | |
parent | 7439bbd9f7dc7ed02149b7133f87280715f2f23d (diff) |
Init: Remove os dependency
Diffstat (limited to 'gajim/__init__.py')
-rw-r--r-- | gajim/__init__.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gajim/__init__.py b/gajim/__init__.py index bfac52adb..9b1702221 100644 --- a/gajim/__init__.py +++ b/gajim/__init__.py @@ -1,13 +1,10 @@ -import os import subprocess import sys from pathlib import Path __version__ = "1.2.91" -IS_FLATPAK = False -if os.path.exists('/app/share/run-as-flatpak'): - IS_FLATPAK = True +IS_FLATPAK = Path('/app/share/run-as-flatpak').exists() portable_path = Path(sys.executable).parent / 'is_portable' IS_PORTABLE = portable_path.exists() |