INNER CODE UNIT · Python
load_config_file
opsdroid/opsdroid · opsdroid/configuration/__init__.py:79
def load_config_file(config_paths):
"""Load a yaml config file from path.
We get a path for the configuration file and then use the yaml
library to load this file - the configuration will be shown as a
dict. Here we also add constructors to our yaml loader and handle
different exceptions that could be raised when trying to load or
validate the file.
Args:
config_paths: List of paths to configuration.yaml files
Returns:
dict: Dict containing config fields
"""
config_path = get_config_path(config_paths)