mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-16 11:28:40 +00:00
Update iconResize.py
This commit is contained in:
@ -91,7 +91,7 @@ for screen_size, icon_sizes in lookup.items():
|
|||||||
svg.attrs["width"] = lookup[screen_size][Half]
|
svg.attrs["width"] = lookup[screen_size][Half]
|
||||||
svg.attrs["height"] = lookup[screen_size][Half]
|
svg.attrs["height"] = lookup[screen_size][Half]
|
||||||
with open(output_dir + "/" + entry, "wb") as o:
|
with open(output_dir + "/" + entry, "wb") as o:
|
||||||
o.write(svg.encode("utf-8"))
|
o.write(svg.encode("utf-8") + b"\n")
|
||||||
elif entry.endswith(".xml"):
|
elif entry.endswith(".xml"):
|
||||||
print("Create file: ", entry.ljust(40) + " XML - Copy file")
|
print("Create file: ", entry.ljust(40) + " XML - Copy file")
|
||||||
shutil.copyfile(input_dir + "/" + entry, output_dir + "/" + entry)
|
shutil.copyfile(input_dir + "/" + entry, output_dir + "/" + entry)
|
||||||
|
Reference in New Issue
Block a user