parent
4a64d999cd
commit
f927e1fc41
1 changed files with 2 additions and 1 deletions
3
build.py
3
build.py
|
@ -21,13 +21,14 @@ def main():
|
||||||
web = os.path.join(out, 'web')
|
web = os.path.join(out, 'web')
|
||||||
if os.path.exists(web):
|
if os.path.exists(web):
|
||||||
shutil.rmtree(web)
|
shutil.rmtree(web)
|
||||||
|
os.makedirs(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)
|
||||||
#
|
#
|
||||||
run('rsync', '--archive', f'{input_directory}/', f'{web}/')
|
run('rsync', '--archive', f'{input_directory}/', f'{web}/')
|
||||||
for directory in [css, js]:
|
for directory in [css, js]:
|
||||||
os.makedirs(directory, exist_ok=True)
|
os.makedirs(directory)
|
||||||
#
|
#
|
||||||
link_gv = os.path.join(root, 'link.gv')
|
link_gv = os.path.join(root, 'link.gv')
|
||||||
link_svg = os.path.join(gen, 'link.svg')
|
link_svg = os.path.join(gen, 'link.svg')
|
||||||
|
|
Loading…
Reference in a new issue