MCPcopy Create free account
hub / github.com/AmberSahdev/Open-Interface / _read_settings_file

Method _read_settings_file

app/utils/settings.py:19–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17 return self.settings
18
19 def _read_settings_file(self) -> dict[str, str]:
20 if os.path.exists(self.settings_file_path):
21 with open(self.settings_file_path, 'r') as file:
22 try:
23 return json.load(file)
24 except Exception:
25 return {}
26 return {}
27
28 def save_settings_to_file(self, settings_dict) -> None:
29 settings: dict[str, str] = self._read_settings_file()

Callers 2

save_settings_to_fileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected