Merge branch 'master' into feature/cdodge/autoprovision-forums-master

This commit is contained in:
Jay Zoldak
2013-05-23 10:19:39 -04:00
2 changed files with 5 additions and 3 deletions

View File

@@ -45,7 +45,7 @@
## called themes/<theme-name>/, with its base Sass file in
## themes/<theme-name>/static/sass/_<theme-name>.scss. That one entry
## point can be used to @import in as many other things as needed.
% if not env['THEME_NAME'] is None:
% if env.get('THEME_NAME') is not None:
// import theme's Sass overrides
@import '${env['THEME_NAME']}'
@import '${env.get('THEME_NAME')}'
% endif

View File

@@ -19,9 +19,11 @@ def preprocess_with_mako(filename)
# strip off the .mako extension
output_filename = filename.chomp(File.extname(filename))
# just pipe from stdout into the new file
# just pipe from stdout into the new file, exiting on failure
File.open(output_filename, 'w') do |file|
file.write(`python -c '#{mako}'`)
exit_code = $?.to_i
abort "#{mako} failed with #{exit_code}" if exit_code.to_i != 0
end
end