diff --git a/hyper_click/sass_path_resolver.py b/hyper_click/sass_path_resolver.py index 8cf385d..01875ee 100644 --- a/hyper_click/sass_path_resolver.py +++ b/hyper_click/sass_path_resolver.py @@ -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):