MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / load_roles_meta

Function load_roles_meta

paperflow/roles.py:39–45  ·  view source on GitHub ↗
(*, project_root: Optional[Path] = None)

Source from the content-addressed store, hash-verified

37 # An explicit root is a deliberate override (tests, tooling); respect it.
38 return root / "data" / "roles.json"
39 # Otherwise resolve via the runtime root so an installed wheel does not
40 # write role metadata into site-packages.
41 from .runtime import data_dir
42
43 return data_dir() / "roles.json"
44
45
46def load_roles_meta(*, project_root: Optional[Path] = None) -> Dict[str, Any]:
47 path = roles_path(project_root=project_root)
48 try:

Callers 1

role_name_for_user_idFunction · 0.70

Calls 1

roles_pathFunction · 0.85

Tested by

no test coverage detected