fix: remove output folder before starting
This commit is contained in:
parent
ba418101a9
commit
9690bfa3b1
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue