Verified Commit 7439bbd9 authored by André's avatar André

Init: Fix IS_PORTABLE check

parent ee0cf350
import os
import subprocess
import sys
from pathlib import Path
__version__ = "1.2.91"
......@@ -7,10 +9,8 @@
if os.path.exists('/app/share/run-as-flatpak'):
IS_FLATPAK = True
IS_PORTABLE = False
portable_path = os.path.join(os.getcwd(), 'is_portable')
if os.path.exists(portable_path):
IS_PORTABLE = True
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,
......
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