core: fixed package name for Android
This commit is contained in:
parent
bcab68049a
commit
18a4d3d544
1 changed files with 4 additions and 4 deletions
|
|
@ -174,7 +174,7 @@ class Const(object):
|
|||
if (
|
||||
BaseDirectory
|
||||
): # skipped when xdg module is not available (should not happen in backend)
|
||||
if "org.salutatoi.cagou.cagou" in BaseDirectory.__file__:
|
||||
if "org.salutatoi.cagou" in BaseDirectory.__file__:
|
||||
# FIXME: hack to make config read from the right location on Android
|
||||
# TODO: fix it in a more proper way
|
||||
|
||||
|
|
@ -186,8 +186,8 @@ class Const(object):
|
|||
|
||||
BaseDirectory = None
|
||||
DEFAULT_CONFIG = {
|
||||
"local_dir": "/data/data/org.salutatoi.cagou.cagou/app",
|
||||
"media_dir": "/data/data/org.salutatoi.cagou.cagou/files/app/media",
|
||||
"local_dir": "/data/data/org.salutatoi.cagou/app",
|
||||
"media_dir": "/data/data/org.salutatoi.cagou/files/app/media",
|
||||
# FIXME: temporary location for downloads, need to call API properly
|
||||
"downloads_dir": os.path.join(
|
||||
Environment.getExternalStoragePublicDirectory(
|
||||
|
|
@ -199,7 +199,7 @@ class Const(object):
|
|||
"log_dir": "%(local_dir)s",
|
||||
}
|
||||
CONFIG_FILES = [
|
||||
"/data/data/org.salutatoi.cagou.cagou/files/app/android/"
|
||||
"/data/data/org.salutatoi.cagou/files/app/android/"
|
||||
+ APP_NAME_FILE
|
||||
+ ".conf"
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue