1 from os.path import dirname
2 from django.conf import settings
3 from pipeline.compilers import SubProcessCompiler
6 class PySCSSCompiler(SubProcessCompiler):
7 output_extension = 'css'
9 def match_file(self, filename):
10 return filename.endswith('.scss')
12 def compile_file(self, infile, outfile, outdated=False, force=False):
13 command = "%s %s < %s > %s" % (
14 settings.PIPELINE_PYSCSS_BINARY,
15 settings.PIPELINE_PYSCSS_ARGUMENTS,
19 return self.execute_command(command, cwd=dirname(infile))