comparison cagou/core/config.py @ 491:203755bbe0fe

massive refactoring from camelCase -> snake_case. See backend commit log for more details
author Goffi <goffi@goffi.org>
date Sat, 08 Apr 2023 13:44:32 +0200
parents 3c9ba4a694ef
children
comparison
equal deleted inserted replaced
490:962d17c4078c 491:203755bbe0fe
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 """This module keep an open instance of sat configuration""" 20 """This module keep an open instance of sat configuration"""
21 21
22 from sat.tools import config 22 from sat.tools import config
23 sat_conf = config.parseMainConf() 23 sat_conf = config.parse_main_conf()
24 24
25 25
26 def getConfig(section, name, default): 26 def config_get(section, name, default):
27 return config.getConfig(sat_conf, section, name, default) 27 return config.config_get(sat_conf, section, name, default)