create static folders if needed
This commit is contained in:
parent
8d216b4852
commit
0b8d9bd04b
1 changed files with 3 additions and 0 deletions
|
@ -37,6 +37,9 @@ if overwrite:
|
||||||
target = '%s.%s.js' % (filename, name)
|
target = '%s.%s.js' % (filename, name)
|
||||||
if os.path.exists(target):
|
if os.path.exists(target):
|
||||||
os.unlink(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.symlink(src, target)
|
||||||
|
|
||||||
os.chdir(base)
|
os.chdir(base)
|
||||||
|
|
Loading…
Reference in a new issue