This commit is contained in:
Marc Beninca 2023-07-28 00:58:18 +02:00
parent 8f33ee35bb
commit 71bfc452e6

View file

@ -2,6 +2,7 @@
import datetime import datetime
import os import os
import shutil
import subprocess import subprocess
import rwx.file import rwx.file
@ -20,6 +21,8 @@ def main():
input_directory = os.path.join(root, 'in') input_directory = os.path.join(root, 'in')
out = os.path.join(root, 'out') out = os.path.join(root, 'out')
web = os.path.join(out, 'web') web = os.path.join(out, 'web')
if os.path.exists(web):
shutil.rmtree(web)
gen = os.path.join(web, time_id) gen = os.path.join(web, time_id)
css = os.path.join(gen, style) css = os.path.join(gen, style)
js = os.path.join(gen, script) js = os.path.join(gen, script)