Don't add load paths to sass that already exist.

This commit is contained in:
Chris Eppstein 2010-08-28 21:54:00 -07:00
parent ac1f0a4be8
commit 04eb17968e

View File

@ -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