def config_edit_using_merge_file(config_filepath, merge_config_filepath):
 with open(merge_config_filepath, 'rb') as f:
  input_lines = [line.rstrip('\n') for line in f]
 desired_options_dict = parse_config(input_lines)
 desired_options = desired_options_dict.values()
 config_edit(config_filepath, desired_options)

def config_edit_using_merge_file ( config_filepath , merge_config_filepath ) : with open ( merge_config_filepath , 'rb' ) as f : input_lines = [ line . rstrip ( '\n' ) for line in f ] desired_options_dict = parse_config ( input_lines ) desired_options = desired_options_dict . values ( ) config_edit ( config_filepath , desired_options )
merges options found in a config file into the main config file .