compass.utilities.io.resolve_all_paths#

resolve_all_paths(container, base_dir, excluded_keys=None)[source]#

Perform a deep string replacement and path resolve in container

Parameters:
  • container (dict or list) – Container like a dictionary or list that may (or may not) contain relative paths to resolve.

  • base_dir (path-like) – Base path to directory from which to resolve path string (typically current directory)

  • excluded_keys (Iterable of str, optional) – Dictionary keys whose values should not be resolved as paths. By default, None.

Returns:

dict or list – Input container with updated strings.