MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / include

Method include

Utility/Config.py:34–43  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

32 return acc_arr
33
34 def include(self, node):
35 filename = os.path.join(self._root, str(self.construct_scalar(node)))
36
37 if not Path(filename).exists():
38 raise ValueError(
39 f"Tried to include file {filename} to *.yaml, but cannot find it."
40 )
41
42 with open(filename, "r") as f:
43 return yaml.load(f, IncludeLoader)
44
45
46

Callers

nothing calls this directly

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected