cleanup landing page
This commit is contained in:
parent
df0f250605
commit
f485f76e5b
5 changed files with 127 additions and 182 deletions
|
|
@ -28,6 +28,9 @@ for root, folders, files in os.walk(join(base, 'static')):
|
|||
rel_src = os.path.relpath(src, dirname(target))
|
||||
if os.path.exists(target):
|
||||
os.unlink(target)
|
||||
target_folder = os.path.dirname(target)
|
||||
if not os.path.exists(target_folder):
|
||||
os.makedirs(target_folder)
|
||||
os.symlink(rel_src, target)
|
||||
|
||||
if overwrite:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue