osa_toolkit/filesystem.py
def _extra_config(user_defined_config, base_dir):
    """Discover new items in any extra directories and add the new values.

    :param user_defined_config: ``dict``
    :param base_dir: ``str``
    """
    for root_dir, _, files in os.walk(base_dir):
        for name in files:
            if name.endswith(('.yml', '.yaml')):
                with open(os.path.join(root_dir, name), 'rb') as f:
                    du.merge_dict(
                        user_defined_config,
                        yaml.safe_load(f.read()) or {}
                    )
                    logger.debug("Merged overrides from file {}".format(name))
Discover new items in any extra directories and add the new values.

    :param user_defined_config: ``dict``
    :param base_dir: ``str``
    
Discover new items in any extra directories and add the new values.
Discover new items in any extra directories and add the new values .
def _extra_config(user_defined_config, base_dir):
    for root_dir, _, files in os.walk(base_dir):
        for name in files:
            if name.endswith(('.yml', '.yaml')):
                with open(os.path.join(root_dir, name), 'rb') as f:
                    du.merge_dict(
                        user_defined_config,
                        yaml.safe_load(f.read()) or {}
                    )
                    logger.debug("Merged overrides from file {}".format(name))
def _extra_config ( user_defined_config , base_dir ) : for root_dir , _ , files in os . walk ( base_dir ) : for name in files : if name . endswith ( ( '.yml' , '.yaml' ) ) : with open ( os . path . join ( root_dir , name ) , 'rb' ) as f : du . merge_dict ( user_defined_config , yaml . safe_load ( f . read ( ) ) or { } ) logger . debug ( "Merged overrides from file {}" . format ( name ) )
Discover new items in any extra directories and add the new values.
Discover new items in any extra directories and add the new values .
"""Discover new items in any extra directories and add the new values.

    :param user_defined_config: ``dict``
    :param base_dir: ``str``
    """
user_defined_config
None
base_dir
None