MCPcopy Create free account
hub / github.com/Tong89/smartNode / load_file

Method load_file

backend/config.py:132–138  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

130 self._runtime = {}
131
132 def load_file(self, path):
133 try:
134 with open(path, "r", encoding="utf-8") as f:
135 self._values.update(json.load(f) or {})
136 except (OSError, ValueError):
137 pass
138 return self
139
140 def load_env(self):
141 for key in self._values:

Callers 1

__init__Method · 0.95

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected