def load_configs(path, name="configs"):
    abspath = os.path.abspath(path)
    dirname, filename = os.path.split(abspath)

    sys_path = list(sys.path)
    argv_dir = os.path.dirname(os.path.abspath(sys.argv[0]))

    with _workdir(dirname):
        try:
            try:
                sys.path.remove(argv_dir)
            except __HOLE__:
                pass
            sys.path.insert(0, dirname)

            module = _load_config_module(abspath)
            try:
                config_attr = getattr(module, name)
            except AttributeError:
                raise ImportError("no {0!r} defined in module {1!r}".format(name, filename))
            return tuple(flatten(config_attr))
        finally:
            sys.path[:] = sys_path
dataset/ETHPy150Open abusesa/abusehelper/abusehelper/core/config.py/load_configs