yoco.py
def _resolve_paths_recursively(config_dict: dict, parent: str) -> None:
    """Resolve relative paths in values of config dict.

    Only strings starting with ./, ../, ~/ are handled, since general strings might
    otherwise be falsely handled as paths.
    """
    for key, value in config_dict.items():
        if isinstance(config_dict[key], dict):
            _resolve_paths_recursively(config_dict[key], parent)
        elif isinstance(value, str) and (
            value.startswith("./") or value.startswith("../")
        ):
            config_dict[key] = _os.path.normpath(_os.path.join(parent, value))
        elif isinstance(value, str) and value.startswith("~/"):
            config_dict[key] = _os.path.expanduser(value)
Resolve relative paths in values of config dict.

    Only strings starting with ./, ../, ~/ are handled, since general strings might
    otherwise be falsely handled as paths.
    
Resolve relative paths in values of config dict.
Only strings starting with ./, ../, ~/ are handled, since general strings might
otherwise be falsely handled as paths.
Resolve relative paths in values of config dict . Only strings starting with . / .. / ~ / are handled since general strings might otherwise be falsely handled as paths .
def _resolve_paths_recursively(config_dict: dict, parent: str) -> None:
    for key, value in config_dict.items():
        if isinstance(config_dict[key], dict):
            _resolve_paths_recursively(config_dict[key], parent)
        elif isinstance(value, str) and (
            value.startswith("./") or value.startswith("../")
        ):
            config_dict[key] = _os.path.normpath(_os.path.join(parent, value))
        elif isinstance(value, str) and value.startswith("~/"):
            config_dict[key] = _os.path.expanduser(value)
def _resolve_paths_recursively ( config_dict : dict , parent : str ) -> None : for key , value in config_dict . items ( ) : if isinstance ( config_dict [ key ] , dict ) : _resolve_paths_recursively ( config_dict [ key ] , parent ) elif isinstance ( value , str ) and ( value . startswith ( "./" ) or value . startswith ( "../" ) ) : config_dict [ key ] = _os . path . normpath ( _os . path . join ( parent , value ) ) elif isinstance ( value , str ) and value . startswith ( "~/" ) : config_dict [ key ] = _os . path . expanduser ( value )
Resolve relative paths in values of config dict.
Resolve relative paths in values of config dict .
"""Resolve relative paths in values of config dict.

    Only strings starting with ./, ../, ~/ are handled, since general strings might
    otherwise be falsely handled as paths.
    """
config_dict
dict
parent
str