forked from Mirrors/apostrophe
parent
2a85ad9bd8
commit
0cbb9aecf0
|
@ -18,8 +18,7 @@
|
||||||
],
|
],
|
||||||
"build-options" : {
|
"build-options" : {
|
||||||
"env": {
|
"env": {
|
||||||
"PYTHON": "python3",
|
"PYTHON": "python3"
|
||||||
"IN_FLATPAK": "1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"add-extensions": {
|
"add-extensions": {
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -36,7 +36,7 @@ from pprint import pprint
|
||||||
pprint(extra_files_ui)
|
pprint(extra_files_ui)
|
||||||
pprint(extra_files_media)
|
pprint(extra_files_media)
|
||||||
|
|
||||||
if os.environ.get('IN_FLATPAK'):
|
if os.path.isfile("/.flatpak-info"):
|
||||||
app_prefix = '/app/'
|
app_prefix = '/app/'
|
||||||
else:
|
else:
|
||||||
app_prefix = ''
|
app_prefix = ''
|
||||||
|
|
|
@ -55,7 +55,8 @@ def get_data_path():
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Get pathname absolute or relative.
|
# 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/'
|
return '/app/opt/uberwriter/data/'
|
||||||
|
|
||||||
path = os.path.join(
|
path = os.path.join(
|
||||||
|
|
Loading…
Reference in New Issue