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

Method __init__

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

Source from the content-addressed store, hash-verified

6
7class Settings:
8 def __init__(self):
9 self.settings_file_path = self.get_settings_directory_path() + 'settings.json'
10 os.makedirs(os.path.dirname(self.settings_file_path), exist_ok=True)
11 self.settings = self.load_settings_from_file()
12
13 def get_settings_directory_path(self):
14 return str(Path.home()) + '/.open-interface/'

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected