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

Function detect_variables

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

Source from the content-addressed store, hash-verified

65
66
67def detect_variables(cfg_file):
68 with open(cfg_file, "r") as fin:
69 raw = fin.read()
70 env = jinja2.Environment()
71 ast = env.parse(raw)
72 vars = meta.find_undeclared_variables(ast)
73 return vars
74
75
76def load_config(cfg_file, context=None):

Callers 1

parse_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected