don't use flatpak env variable

gh-pages v2.0.1
somas95 2018-05-13 16:50:10 +02:00
parent 2a85ad9bd8
commit 0cbb9aecf0
3 changed files with 4 additions and 4 deletions

View File

@ -18,8 +18,7 @@
],
"build-options" : {
"env": {
"PYTHON": "python3",
"IN_FLATPAK": "1"
"PYTHON": "python3"
}
},
"add-extensions": {

View File

@ -36,7 +36,7 @@ from pprint import pprint
pprint(extra_files_ui)
pprint(extra_files_media)
if os.environ.get('IN_FLATPAK'):
if os.path.isfile("/.flatpak-info"):
app_prefix = '/app/'
else:
app_prefix = ''

View File

@ -55,7 +55,8 @@ def get_data_path():
"""
# Get pathname absolute or relative.
if os.environ.get("IN_FLATPAK"):
# TODO: Abstract this (the old env IN_FLATPAK)
if os.path.isfile("/.flatpak-info"):
return '/app/opt/uberwriter/data/'
path = os.path.join(