MCPcopy Create free account
hub / github.com/ElementsProject/elements / module_name

Function module_name

contrib/devtools/circular-dependencies.py:22–33  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

20]
21
22def module_name(path):
23 if path in MAPPING:
24 path = MAPPING[path]
25 if any(path.startswith(dirpath) for dirpath in HEADER_MODULE_PATHS):
26 return path
27 if path.endswith(".h"):
28 return path[:-2]
29 if path.endswith(".c"):
30 return path[:-2]
31 if path.endswith(".cpp"):
32 return path[:-4]
33 return None
34
35files = dict()
36deps: Dict[str, Set[str]] = dict()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected