fix(WVD): Fix empty path to WVDs folder check

It seems a change in click made it so this is now just an empty tuple rather than a one-item tuple with Path("") resolved.
This commit is contained in:
rlaphoenix 2024-04-01 18:33:02 +01:00
parent a053423d23
commit 117a1188cd
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ def dump(wvd_paths: list[Path], out_dir: Path) -> None:
If the path is relative, with no file extension, it will dump the WVD in the WVDs If the path is relative, with no file extension, it will dump the WVD in the WVDs
directory. directory.
""" """
if wvd_paths == (Path(""),): if wvd_paths == ():
wvd_paths = list(config.directories.wvds.iterdir()) wvd_paths = list(config.directories.wvds.iterdir())
for wvd_path, out_path in zip(wvd_paths, (out_dir / x.stem for x in wvd_paths)): for wvd_path, out_path in zip(wvd_paths, (out_dir / x.stem for x in wvd_paths)):
try: try: