From 04eb17968e25c5848740c0bd597e65ddb4e46616 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sat, 28 Aug 2010 21:54:00 -0700 Subject: [PATCH] Don't add load paths to sass that already exist. --- lib/compass/configuration/helpers.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/compass/configuration/helpers.rb b/lib/compass/configuration/helpers.rb index 2fef6c33..143bfe14 100644 --- a/lib/compass/configuration/helpers.rb +++ b/lib/compass/configuration/helpers.rb @@ -61,7 +61,9 @@ module Compass locations = config.delete(:template_location) Sass::Plugin.options.merge!(config) locations.each do |sass_dir, css_dir| - Sass::Plugin.add_template_location sass_dir, css_dir + unless Sass::Plugin.engine_options[:load_paths].include?(sass_dir) + Sass::Plugin.add_template_location sass_dir, css_dir + end end end