Commit 944ad9cc authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Configpaths: Fix get_paths()

_paths is not a dict we can’t use values()
parent 064f77e9
......@@ -53,11 +53,12 @@ def get_plugin_dirs() -> List[Path]:
def get_paths(type_: PathType) -> Generator[Path, None, None]:
for value in _paths.values():
# pylint: disable=unnecessary-dict-index-lookup
for key, value in _paths.items():
path_type = value[2]
if type_ != path_type:
continue
yield value
yield _paths[key]
def override_path(*args, **kwargs):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment