Add weather routes project progress

This commit is contained in:
2025-04-07 19:40:38 +02:00
parent 8941d84bc8
commit fa5f6b2588
52 changed files with 2027 additions and 0 deletions

14
WeatherRoutes/generate.py Normal file
View File

@@ -0,0 +1,14 @@
import os
resource_file = "resources.qrc"
image_folder = "images"
with open(resource_file, "w") as f:
f.write('<!DOCTYPE RCC><RCC version="1.0">\n<qresource prefix="">\n')
for root, _, files in os.walk(image_folder):
for file in files:
if file.endswith('.png'):
f.write(f' <file>{os.path.join(image_folder, file)}</file>\n')
f.write('</qresource>\n</RCC>\n')
print(f"{resource_file} has been generated.")