fix: tools: icon_maker create icons folder if doesn't exist

This commit is contained in:
Starnakin 2024-12-11 20:32:11 +01:00
parent 570b848625
commit bd080a0f9e

View File

@ -33,5 +33,8 @@ struct icon {filename}_icon = {{
""" """
if not os.path.exists("./headers/icons"):
os.makedirs("./headers/icons")
with open(f"./headers/icons/{filename}.h", "w") as f: with open(f"./headers/icons/{filename}.h", "w") as f:
f.write(string) f.write(string)