MCPcopy Create free account
hub / github.com/DeepGraphLearning/DiffPack / detect_variables

Function detect_variables

util.py:61–67  ·  view source on GitHub ↗
(cfg_file)

Source from the content-addressed store, hash-verified

59
60
61def detect_variables(cfg_file):
62 with open(cfg_file, "r") as fin:
63 raw = fin.read()
64 env = jinja2.Environment()
65 ast = env.parse(raw)
66 vars = meta.find_undeclared_variables(ast)
67 return vars
68
69
70def load_config(cfg_file, context=None):

Callers 1

parse_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected