Don't filter files with the compass filter that don't have either scss or sass file extension. Fixes #72.

This commit is contained in:
Jannis Leidel
2011-08-09 11:36:01 +02:00
parent ed7341f082
commit 181b66c708

View File

@@ -18,6 +18,9 @@ class CompassFilter(CompilerFilter):
def input(self, *args, **kwargs):
if self.filename is None:
self.filename = kwargs.pop('filename')
if not (self.filename.lower().endswith('scss') or
self.filename.lower().endswith('sass')):
return ''
tmpdir = tempfile.mkdtemp()
parentdir = path.abspath(path.dirname(self.filename))
self.cwd = path.dirname(parentdir)