INNER CODE UNIT · Python
get_config_path
opsdroid/opsdroid · opsdroid/configuration/__init__.py:45
def get_config_path(config_paths):
"""Get the path to configuration.yaml.
Opsdroid configuration.yaml can be located in different paths.
With this function, we will go through all of the possible paths and
return the correct path.
If we don't have any configuration.yaml we will just create one using
the example configuration file.
Args:
config_paths: List containing all the possible config paths.
Returns:
str: Path to the configuration file.
"""
config_path = ""