Files changed (1)
For Windows, https://github.com/duncansmart/less.js-windows is awesome. But you need the exact path, so I'm not setting it in advanced.
-# TemplateSyntaxError("LESS CSS compiler sent an angry error message about your file. Here's it's complaint:\n\n \x1b[31mParseError: Syntax Error on line 2\x1b[39m\x1b[31m in \x1b[39mC:\\Users\\Jason\\dev\\open_src\\less_is_more\\tests\\static\\invalid_style.less\x1b[90m:2:1\x1b[39m\n",)
If LESS_TOOLS_SETTINGS['is_multitenant'] = True, we'll get static root off the request instead of settings.
raise TemplateSyntaxError('%s is not a file, and you can\'t run the LESS compiler on it.' % less_file)
output = "%s%s.%s.css" % (LESS_TOOLS_SETTINGS['output_dir'], less.replace("/","."), modified) # Hash it for easy caching
if not os.path.isfile("%s%s" % (settings.MEDIA_ROOT, output)): # Create the file only if it hasn't been already
- process = subprocess.check_output(['node', compiler, less_file, '%s%s' % (settings.MEDIA_ROOT, output), '-compress'], shell=use_shell, stderr=subprocess.STDOUT)
+ """ If we have extra variables, we're going to build a temporary file with them prepended and return that instead. """