def gather_configuration(acquire_settings, log_printer, arg_list=None, arg_parser=None):
 arg_list = (sys.argv[1:] if (arg_list is None) else arg_list)
 (sections, targets) = load_configuration(arg_list, log_printer, arg_parser)
 (local_bears, global_bears) = fill_settings(sections, acquire_settings, log_printer)
 save_sections(sections)
 warn_nonexistent_targets(targets, sections, log_printer)
 return (sections, local_bears, global_bears, targets)

def gather_configuration ( acquire_settings , log_printer , arg_list = None , arg_parser = None ) : arg_list = ( sys . argv [ 1 : ] if ( arg_list is None ) else arg_list ) ( sections , targets ) = load_configuration ( arg_list , log_printer , arg_parser ) ( local_bears , global_bears ) = fill_settings ( sections , acquire_settings , log_printer ) save_sections ( sections ) warn_nonexistent_targets ( targets , sections , log_printer ) return ( sections , local_bears , global_bears , targets )
loads all configuration files .