Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix getnikola/nikola#966 -- make sass work properly

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
  • Loading branch information...
commit 6c42838969db5a1377759d448a6e373a5edd9c9c 1 parent d71f3d5
@Kwpolska Kwpolska authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 v7/sass/sass.py
View
12 v7/sass/sass.py
@@ -88,10 +88,14 @@ def gen_tasks(self):
base_path = utils.get_theme_path(self.site.THEMES[0])
dst_dir = os.path.join(self.site.config['OUTPUT_FOLDER'], 'assets', 'css')
# Make everything depend on all sources, rough but enough
- deps = glob.glob(os.path.join(
- base_path,
- self.sources_folder,
- *("*{0}".format(ext) for ext in self.sources_ext)))
+ deps = []
+ for ext in self.sources_ext:
+ if os.path.isfile(os.path.join(self.sources_folder, "targets")):
+ deps += glob.glob(os.path.join(kw['cache_folder'], self.sources_folder,
+ '*{0}'.format(ext)))
+ else:
+ deps += glob.glob(os.path.join(base_path, self.sources_folder,
+ '*{0}'.format(ext)))
def compile_target(target, dst):
utils.makedirs(dst_dir)
Please sign in to comment.
Something went wrong with that request. Please try again.