#NEWLINE# def fetch_local_config( default , config = None ) : #NEWLINE# #INDENT# '\n\tReturns the content of a yml config file as a hash\n\tParameters:\n\t - default: default file name to look for\n\t - config: override with this file name instead. (optional)\n\t   Note: the pattern of using config is intended to make using this with\n\t   OptionsParser easier.  Otherwise, generally ignore the use of the\n\t   config argument.\n\tRaises:\n\t - IOError if no file is found\n\t' #NEWLINE# retcfg = default #NEWLINE# if retcfg : #NEWLINE# #INDENT# retcfg = config #NEWLINE# #UNINDENT# return yaml . load ( file ( find_local_config_path ( retcfg ) ) )