(value: Any)
| 243 | return command |
| 244 | |
| 245 | |
| 246 | def maybe_absolute_path(value: Any) -> Any: |
| 247 | if not isinstance(value, str): |
| 248 | return value |
| 249 | path = Path(value) |
| 250 | if path.is_absolute(): |
| 251 | return value |
| 252 | if value.startswith(("assets/", "resources/", "models/", "build/", "reference/")): |
| 253 | return str(REPO_ROOT / path) |
| 254 | return value |
| 255 | |
| 256 |
no outgoing calls
no test coverage detected