mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-16 20:09:44 -07:00
Format
This commit is contained in:
+3
-1
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user