create static folders if needed

This commit is contained in:
j 2019-10-23 09:53:19 +02:00
parent 8d216b4852
commit 0b8d9bd04b
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ if overwrite:
target = '%s.%s.js' % (filename, name)
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(src, target)
os.chdir(base)