parameters: (config_file_list, config)
return_statement: return config
docstring: read in config specified in a config file list, later ones overwrite former ones
docstring_summary: read in config specified in a config file list, later ones overwrite former ones
docstring_tokens: read in config specified in a config file list later ones overwrite former ones
function: def add_configs_in_order(config_file_list, config):
      """read in config specified in a config file list, later ones overwrite former ones"""
      for config_file in config_file_list:
          if not os.path.exists(config_file):
              print("ERROR: {} does not exist!".format(config_file))
              exit()
          with open(config_file) as cf:
              merge_config(config, yaml.safe_load(cf))
      return config
function_tokens: def add_configs_in_order ( config_file_list , config ) : for config_file in config_file_list : if not os . path . exists ( config_file ) : print ( "ERROR: {} does not exist!" . format ( config_file ) ) exit ( ) with open ( config_file ) as cf : merge_config ( config , yaml . safe_load ( cf ) ) return config