Fix issue with parent directory references within the sass_path in the compass compiler.

Closes GH-409.
This commit is contained in:
Chris Eppstein 2011-07-03 10:45:28 -07:00
parent 432309d1a7
commit 539f206e51

View File

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