comparison sat/core/constants.py @ 2578:bf1b12a8f597

core (constants): updated Android constants for Cagou
author Goffi <goffi@goffi.org>
date Fri, 13 Apr 2018 18:44:22 +0200
parents 4aca060075b7
children 86e57108bd50
comparison
equal deleted inserted replaced
2577:1209a5d83082 2578:bf1b12a8f597
173 if "org.goffi.cagou.cagou" in BaseDirectory.__file__: 173 if "org.goffi.cagou.cagou" in BaseDirectory.__file__:
174 # FIXME: hack to make config read from the right location on Android 174 # FIXME: hack to make config read from the right location on Android
175 # TODO: fix it in a more proper way 175 # TODO: fix it in a more proper way
176 BaseDirectory = None 176 BaseDirectory = None
177 DEFAULT_CONFIG = { 177 DEFAULT_CONFIG = {
178 'local_dir': '/data/data/org.goffi.cagou.cagou/', 178 'local_dir': '/data/data/org.goffi.cagou.cagou/app',
179 'media_dir': '/data/data/org.goffi.cagou.cagou/files/media', 179 'media_dir': '/data/data/org.goffi.cagou.cagou/files/app/media',
180 'pid_dir': '%(local_dir)s', 180 'pid_dir': '%(local_dir)s',
181 'log_dir': '%(local_dir)s', 181 'log_dir': '%(local_dir)s',
182 } 182 }
183 CONFIG_FILES = ['/data/data/org.goffi.cagou.cagou/files/platform/android/' + APP_NAME_FILE + '.conf'] 183 CONFIG_FILES = ['/data/data/org.goffi.cagou.cagou/files/app/android/' + APP_NAME_FILE + '.conf']
184 else: 184 else:
185 185
186 ## Configuration ## 186 ## Configuration ##
187 DEFAULT_CONFIG = { 187 DEFAULT_CONFIG = {
188 'media_dir': '/usr/share/' + APP_NAME_FILE + '/media', 188 'media_dir': '/usr/share/' + APP_NAME_FILE + '/media',