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 .