def dir_find(preferred_path=None, suffix=None, raise_if_missing=True):
 search_paths = _get_search_paths(preferred_path, suffix)
 for f in search_paths:
  if os.path.isdir(f):
   return f
 if raise_if_missing:
  raise MissingDataSource(search_paths)
 else:
  return False

def dir_find ( preferred_path = None , suffix = None , raise_if_missing = True ) : search_paths = _get_search_paths ( preferred_path , suffix ) for f in search_paths : if os . path . isdir ( f ) : return f if raise_if_missing : raise MissingDataSource ( search_paths ) else : return False
return the path to the user configuration files .