Update rebuild-themes.py

This commit is contained in:
mauro 🤙 2024-08-18 20:10:18 +02:00 committed by GitHub
parent 2c1ff30064
commit 8262640385
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,6 +6,8 @@ THEMES_FOLDER = './themes'
THEMES_DATA_FILE = './themes.json'
def main():
with open(THEMES_DATA_FILE, 'w') as f:
json.dump({}, f, indent=4)
for theme in os.listdir(THEMES_FOLDER):
theme_folder = os.path.join(THEMES_FOLDER, theme)
if not os.path.isdir(theme_folder):