Resolves the cache_root_dir / global_templates_dir keys of a global-config
mapping to absolute paths relative to base_dir. All other keys are left untouched.
This is the single implementation of that resolution rule; both GlobalConfig.resolve_paths()
and callers holding a raw (unvalidated) global-config dict route through it.
Returns:
A shallow copy of data with cache_root_dir / global_templates_dir
Methods
resolve_global_config_paths
resolve_global_config_paths(data: dict, base_dir: Union) -> dict
Resolves the cache_root_dir / global_templates_dir keys of a global-config
mapping to absolute paths relative to base_dir. All other keys are left untouched.
This is the single implementation of that resolution rule; both GlobalConfig.resolve_paths()
and callers holding a raw (unvalidated) global-config dict route through it.
Returns:
A shallow copy of data with cache_root_dir / global_templates_dir
| Parameter | Type | Description |
|---|---|---|
| data | dict | Raw global-config mapping (validated or not). |
| base_dir | Union | Directory the two path keys are resolved relative to. |
Generated with Flude
Copyright © 2026