Root directory for relative paths in local runtime
(umo: str)
| 12 | |
| 13 | |
| 14 | def workspace_root(umo: str) -> Path: |
| 15 | """Root directory for relative paths in local runtime""" |
| 16 | normalized_umo = normalize_umo_for_workspace(umo) |
| 17 | return (Path(get_astrbot_workspaces_path()) / normalized_umo).resolve(strict=False) |
| 18 | |
| 19 | |
| 20 | def is_local_runtime(context: ContextWrapper[AstrAgentContext]) -> bool: |
no test coverage detected