read config from path or list of paths

    :param str|list[str] paths: path or list of paths
    :return dict: loaded and merged config

def read_file(paths):
    """read config from path or list of paths

    :param str|list[str] paths: path or list of paths
    :return dict: loaded and merged config
    """

    if isinstance(paths, str):
        paths = [paths]

    re = {}
    for path in paths:
        cfg = yaml.load(open(path))
        merge(re, cfg)

    return re