MCPcopy Create free account
hub / github.com/Boris-code/feapder / get_conf_value

Function get_conf_value

feapder/utils/tools.py:1104–1108  ·  view source on GitHub ↗
(config_file, section, key)

Source from the content-addressed store, hash-verified

1102
1103##################################################
1104def get_conf_value(config_file, section, key):
1105 cp = configparser.ConfigParser(allow_no_value=True)
1106 with codecs.open(config_file, "r", encoding="utf-8") as f:
1107 cp.read_file(f)
1108 return cp.get(section, key)
1109
1110
1111def mkdir(path):

Callers

nothing calls this directly

Calls 2

openMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected