From bd080a0f9e1a686b893115d071a7487fdf2b1ca1 Mon Sep 17 00:00:00 2001 From: Starnakin Date: Wed, 11 Dec 2024 20:32:11 +0100 Subject: [PATCH] fix: tools: icon_maker create icons folder if doesn't exist --- tools/icon_converter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/icon_converter.py b/tools/icon_converter.py index 1caa13e..192bb82 100644 --- a/tools/icon_converter.py +++ b/tools/icon_converter.py @@ -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: f.write(string) \ No newline at end of file