This commit is contained in:
Willy-JL
2024-11-04 07:21:07 +00:00
parent 541ddaa2b8
commit 0de6e2086b
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -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:
+2
View File
@@ -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