From a0ebf841c92f5882304ac94deab80f0245c8e849 Mon Sep 17 00:00:00 2001 From: LongHairedHacker Date: Fri, 11 Nov 2016 00:25:12 +0100 Subject: [PATCH] Made sassassets module create its destination directory --- modules/sassassets.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/sassassets.py b/modules/sassassets.py index 5895c83..853e5e2 100644 --- a/modules/sassassets.py +++ b/modules/sassassets.py @@ -18,6 +18,10 @@ class SassAssets(MessageMixin, RenderMixin, AssetsMixin): source_path = os.path.join(self.asset_directory, source) dest_path = os.path.join(output_directory, destination); + dest_dir = os.path.dirname(dest_path) + if not os.path.exists(dest_dir): + os.makedirs(dest_dir) + if os.path.isfile(source_path): self.compile_file(source_path, dest_path) else: