create static folders if needed

This commit is contained in:
j 2019-10-23 09:53:19 +02:00
parent 8d216b4852
commit 0b8d9bd04b

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)