(*, project_root: Optional[Path] = None)
| 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 | |
| 46 | def load_roles_meta(*, project_root: Optional[Path] = None) -> Dict[str, Any]: |
| 47 | path = roles_path(project_root=project_root) |
| 48 | try: |
no test coverage detected