[appimage] new config file

This commit is contained in:
Vinícius Moreira
2019-12-19 15:10:27 -03:00
parent 894e2d9988
commit 86bb1b55d6
5 changed files with 62 additions and 32 deletions

View File

@@ -0,0 +1,12 @@
from bauh.api.constants import CONFIG_PATH
from bauh.commons.config import read_config as read
def read_config(update_file: bool = False) -> dict:
default = {
'db_updater': {
'interval': 60 * 20,
'enabled': True
}
}
return read('{}/appimage.yml'.format(CONFIG_PATH), default, update_file=update_file)