MCPcopy Create free account
hub / github.com/ehForwarderBot/ehForwarderBot / load_config

Method load_config

ehforwarderbot/wizard.py:100–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98 return str_io
99
100 def load_config(self):
101 coordinator.profile = self.profile
102 conf_path = utils.get_config_path()
103 if not os.path.exists(conf_path):
104 self.config = self.yaml.load(self.default_config())
105 else:
106 with open(conf_path) as f:
107 self.config = self.yaml.load(f)
108 self.load_modules_list()
109
110 def save_config(self):
111 coordinator.profile = self.profile

Callers 7

mainFunction · 0.95
dump_and_load_configFunction · 0.80
test_load_configFunction · 0.80
test_no_config_fileFunction · 0.80
coordFunction · 0.80
print_versionsFunction · 0.80
mainFunction · 0.80

Calls 2

default_configMethod · 0.95
load_modules_listMethod · 0.95

Tested by 4

dump_and_load_configFunction · 0.64
test_load_configFunction · 0.64
test_no_config_fileFunction · 0.64
coordFunction · 0.64