MCPcopy Create free account
hub / github.com/numpy/numpy / get_file_template

Function get_file_template

tools/npy_tempita/__init__.py:86–90  ·  view source on GitHub ↗
(name, from_template)

Source from the content-addressed store, hash-verified

84
85
86def get_file_template(name, from_template):
87 path = os.path.join(os.path.dirname(from_template.name), name)
88 return from_template.__class__.from_filename(
89 path, namespace=from_template.namespace,
90 get_template=from_template.get_template)
91
92
93class Template:

Callers

nothing calls this directly

Calls 2

from_filenameMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected