From 0de6e2086bbc01976bdfe65e6a16a761451a387e Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Mon, 4 Nov 2024 07:21:07 +0000 Subject: [PATCH] Format --- scripts/assets.py | 4 +++- scripts/check_unused_icons.py | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/assets.py b/scripts/assets.py index 557d913df..8778671db 100755 --- a/scripts/assets.py +++ b/scripts/assets.py @@ -227,7 +227,9 @@ class Main(App): icons.append((icon_name, width, height, 0, 1)) p = fullfilename.removeprefix(self.args.input_directory)[1:] if icon_in_api: - paths.append((icon_name, p.replace("\\", "/").rsplit(".", 1)[0])) + paths.append( + (icon_name, p.replace("\\", "/").rsplit(".", 1)[0]) + ) # Create array of images: self.logger.debug("Finalizing source file") for name, width, height, frame_rate, frame_count in icons: diff --git a/scripts/check_unused_icons.py b/scripts/check_unused_icons.py index 3a97a4f91..22d81f77b 100755 --- a/scripts/check_unused_icons.py +++ b/scripts/check_unused_icons.py @@ -4,6 +4,7 @@ import pathlib root = pathlib.Path(__file__).parent / ".." icons = root / "assets/icons" + def source_dir_uses_icon(dir: str, name: str): count = 0 name = name.encode() @@ -15,6 +16,7 @@ def source_dir_uses_icon(dir: str, name: str): print(f"Faield to read {file}") return count + for category in icons.iterdir(): if not category.is_dir(): continue