comparison sat/tools/config.py @ 2965:121c4a2a567c

core (config): if flatpak is detected, config is also looked after in /app
author Goffi <goffi@goffi.org>
date Sun, 23 Jun 2019 17:40:19 +0200
parents ad00f61fd9f5
children ab2696e34d29
comparison
equal deleted inserted replaced
2964:17c61d09a85b 2965:121c4a2a567c
29 from sat.core.constants import Const as C 29 from sat.core.constants import Const as C
30 from sat.core.i18n import _ 30 from sat.core.i18n import _
31 from sat.core import exceptions 31 from sat.core import exceptions
32 32
33 log = getLogger(__name__) 33 log = getLogger(__name__)
34
34 35
35 def fixConfigOption(section, option, value, silent=True): 36 def fixConfigOption(section, option, value, silent=True):
36 """Force a configuration option value, writing it in the first found user 37 """Force a configuration option value, writing it in the first found user
37 config file, eventually creating a new user config file if none is found. 38 config file, eventually creating a new user config file if none is found.
38 39