rmtree
This commit is contained in:
parent
8f33ee35bb
commit
71bfc452e6
1 changed files with 3 additions and 0 deletions
3
build.py
3
build.py
|
@ -2,6 +2,7 @@
|
|||
|
||||
import datetime
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
|
||||
import rwx.file
|
||||
|
@ -20,6 +21,8 @@ def main():
|
|||
input_directory = os.path.join(root, 'in')
|
||||
out = os.path.join(root, 'out')
|
||||
web = os.path.join(out, 'web')
|
||||
if os.path.exists(web):
|
||||
shutil.rmtree(web)
|
||||
gen = os.path.join(web, time_id)
|
||||
css = os.path.join(gen, style)
|
||||
js = os.path.join(gen, script)
|
||||
|
|
Loading…
Reference in a new issue