Skip to content

Commit

Permalink
Merge pull request #48 from aziz/fixup-sass-resolver
Browse files Browse the repository at this point in the history
Fixed SassPathResolver work for non-project environments
  • Loading branch information
anru authored May 5, 2019
2 parents 190b1cc + 71c463a commit e40a0fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hyper_click/sass_path_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ def __init__(self, str_path, current_dir, roots, lang, settings, proj_settings):
self.roots = roots
self.valid_extensions = settings.get('valid_extensions', {})[lang]
self.proj_settings = proj_settings
self.matchingRoot = [root for root in self.roots if self.current_dir.startswith(root)]
self.currentRoot = self.matchingRoot[0]
self.matchingRoots = [root for root in self.roots if self.current_dir.startswith(root)]
self.currentRoot = self.matchingRoots[0] if self.matchingRoots else self.current_dir
self.lookup_paths = self.proj_settings.get('lookup_paths', {}).get(lang, False) or settings.get('lookup_paths', {}).get(lang, False) or []

def resolve(self):
Expand Down

0 comments on commit e40a0fe

Please sign in to comment.