From f99fad8e15f5176ef3334850c2814ba68ea4e75a Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Mon, 1 Apr 2024 18:35:56 +0100 Subject: [PATCH] refactor(WVD): Seperate logs in loop for visual clarity --- devine/commands/wvd.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/devine/commands/wvd.py b/devine/commands/wvd.py index 2286b54..087021f 100644 --- a/devine/commands/wvd.py +++ b/devine/commands/wvd.py @@ -124,7 +124,11 @@ def dump(wvd_paths: list[Path], out_dir: Path) -> None: if wvd_paths == (): 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 i, (wvd_path, out_path) in enumerate(zip(wvd_paths, (out_dir / x.stem for x in wvd_paths))): + if i > 0: + log.info("") + try: named = not wvd_path.suffix and wvd_path.relative_to(Path("")) except ValueError: