From 539f206e51d34a35bbcec602e7a5d5ae21246a9e Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Sun, 3 Jul 2011 10:45:28 -0700 Subject: [PATCH] Fix issue with parent directory references within the sass_path in the compass compiler. Closes GH-409. --- lib/compass/compiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/compass/compiler.rb b/lib/compass/compiler.rb index 19b26415..f5dcbe12 100644 --- a/lib/compass/compiler.rb +++ b/lib/compass/compiler.rb @@ -7,7 +7,7 @@ module Compass def initialize(working_path, from, to, options) self.working_path = working_path.to_s - self.from, self.to = from.gsub('./', ''), to + self.from, self.to = File.expand_path(from), to self.logger = options.delete(:logger) sass_opts = options.delete(:sass) || {} self.options = options