MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / fromfile

Method fromfile

util/config.py:151–153  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

149
150 @staticmethod
151 def fromfile(filename):
152 cfg_dict, cfg_text = Config._file2dict(filename)
153 return Config(cfg_dict, cfg_text=cfg_text, filename=filename)
154
155 def __init__(self, cfg_dict=None, cfg_text=None, filename=None):
156 if cfg_dict is None:

Callers

nothing calls this directly

Calls 2

_file2dictMethod · 0.80
ConfigClass · 0.70

Tested by

no test coverage detected