code: def get_config_dir(path, pattern="*.config", configspec=None, allow_errors=False):
  	logger = logging.getLogger(__name__)
  	logger.debug("Loading all files matching {0} in {1}".format(pattern, path))
  	files = Globber(path, include=[pattern], recursive=False).glob()
  	files = sorted(files)
  	config = ConfigObj()
  	for filename in files:
  		logger.debug("- Loading config for {0}".format(filename))
  		try:
  			conf = ConfigObj(filename, configspec=configspec)
  		except ConfigObjError, coe:
  			logger.error("An error occurred while parsing {0}: {1}".format(filename, str(coe)))
  			continue
  		if configspec:
  			conf.validate(Validator())
  		config.merge(conf)
  	return config