MCPcopy Index your code
hub / github.com/pyinvoke/invoke / find

Method find

tests/loader.py:24–31  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

22 """
23
24 def find(self, name):
25 path = os.path.join(support, name)
26 if os.path.exists(f"{path}.py"):
27 path = f"{path}.py"
28 elif os.path.exists(path):
29 path = os.path.join(path, "__init__.py")
30 spec = spec_from_file_location(name, path)
31 return spec
32
33
34class Loader_:

Callers 1

findMethod · 0.45

Calls 2

joinMethod · 0.80
existsMethod · 0.80

Tested by

no test coverage detected