common.utils¶
Small helpers shared across the agent packages.
Functions
|
Return |
- common.utils.require_absolute_path(value)[source]¶
Return
valueas an absolutePath.Relative paths are rejected: they are ambiguous without an anchor, and the config loader resolves them against the config file’s location before the config models see them.
- Parameters:
value (str | Path) – The path to check.
- Returns:
The same path, as an absolute Path.
- Return type:
Path
- Raises:
ValueError – If
valueis not absolute.