fix: remove output folder before starting

This commit is contained in:
quenousimporte 2026-08-18 09:07:39 +02:00
parent ba418101a9
commit 9690bfa3b1
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ with open(settingsfile, "r", encoding="utf-8") as file:
htmlhome = "<h1>{}</h1><p>{}</p>".format(index['title'], index['description'])
gmihome = "# {}\n{}".format(index['title'], index['description'])
shutil.rmtree('out')
os.makedirs("out/html", exist_ok=True)
os.makedirs("out/gmi", exist_ok=True)