From 0b8d9bd04b20f3ec8b3174d2e82d28cae4456957 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 23 Oct 2019 09:53:19 +0200 Subject: [PATCH] create static folders if needed --- install.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.py b/install.py index e6bd6c3..1167369 100755 --- a/install.py +++ b/install.py @@ -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)