yoco.py
def load_config_from_file(
    path: str,
    current_dict: Optional[dict] = None,
    parent: Optional[str] = None,
    search_paths: Optional[List[str]] = None,
) -> dict:
    """Load configuration from a file.

    Args:
        path: Path of YAML file to load.
        current_dict:
            Current configuration dictionary. Will not be modified.
            If None, an empty dictionary will be created.
        parent:
            Parent directory.
            If not None, path will be assumed to be relative to parent.
        search_paths:
            Search paths used to resolve config files.
            See resolve_path for more information.

    Returns:
        Updated configuration dictionary.
    """
    if current_dict is None:
        current_dict = {}

    full_path = resolve_path(path, parent, search_paths)

    parent = _os.path.dirname(full_path)

    with open(full_path) as f:
        config_dict = _yaml.load(f)
        current_dict = load_config(config_dict, current_dict, parent, search_paths)

    return current_dict
Load configuration from a file.

    Args:
        path: Path of YAML file to load.
        current_dict:
            Current configuration dictionary. Will not be modified.
            If None, an empty dictionary will be created.
        parent:
            Parent directory.
            If not None, path will be assumed to be relative to parent.
        search_paths:
            Search paths used to resolve config files.
            See resolve_path for more information.

    Returns:
        Updated configuration dictionary.
    
Load configuration from a file.
Load configuration from a file .
def load_config_from_file(
    path: str,
    current_dict: Optional[dict] = None,
    parent: Optional[str] = None,
    search_paths: Optional[List[str]] = None,
) -> dict:
    if current_dict is None:
        current_dict = {}
    full_path = resolve_path(path, parent, search_paths)
    parent = _os.path.dirname(full_path)
    with open(full_path) as f:
        config_dict = _yaml.load(f)
        current_dict = load_config(config_dict, current_dict, parent, search_paths)
    return current_dict
def load_config_from_file ( path : str , current_dict : Optional [ dict ] = None , parent : Optional [ str ] = None , search_paths : Optional [ List [ str ] ] = None , ) -> dict : if current_dict is None : current_dict = { } full_path = resolve_path ( path , parent , search_paths ) parent = _os . path . dirname ( full_path ) with open ( full_path ) as f : config_dict = _yaml . load ( f ) current_dict = load_config ( config_dict , current_dict , parent , search_paths ) return current_dict
Load configuration from a file.
Load configuration from a file .
"""Load configuration from a file.

    Args:
        path: Path of YAML file to load.
        current_dict:
            Current configuration dictionary. Will not be modified.
            If None, an empty dictionary will be created.
        parent:
            Parent directory.
            If not None, path will be assumed to be relative to parent.
        search_paths:
            Search paths used to resolve config files.
            See resolve_path for more information.

    Returns:
        Updated configuration dictionary.
    """
Updated configuration dictionary.
Updated configuration dictionary .
path
str
Path of YAML file to load.
Path of YAML file to load .
current_dict
Optional[dict]
Current configuration dictionary. Will not be modified.
If None, an empty dictionary will be created.
Current configuration dictionary . Will not be modified . If None an empty dictionary will be created .
parent
Optional[str]
Parent directory.
If not None, path will be assumed to be relative to parent.
Parent directory . If not None path will be assumed to be relative to parent .
search_paths
Optional[List[str]]
Search paths used to resolve config files.
See resolve_path for more information.
Search paths used to resolve config files . See resolve_path for more information .