espnet3.utils.config_utils.config_path
Less than 1 minute
espnet3.utils.config_utils.config_path
espnet3.utils.config_utils.config_path(path)
Return an absolute path rewritten by _normalize_relative_resolver_paths.
Used as ${config_path:../src/file.md} in YAML configs. The relative path is resolved to an absolute path at load time by _normalize_relative_resolver_paths, so this resolver simply returns its argument unchanged.
- Parameters:path (str) – Absolute path injected during config loading.
- Returns: The path unchanged.
- Return type: str
Examples
In a config file at conf/demo.yaml:
pack:
readme: ${config_path:../src/hf_demo_readme.md}Resolves to the absolute path of src/hf_demo_readme.md relative to the directory containing conf/.
