Handle homeless users. Closes GH-364.

This commit is contained in:
Chris Eppstein 2011-04-29 06:50:11 -07:00
parent 2cafc616b6
commit ea6e15b8a4

View File

@ -15,7 +15,13 @@ module Compass
File.expand_path(File.join(File.dirname(__FILE__))) File.expand_path(File.join(File.dirname(__FILE__)))
end end
def shared_extension_paths def shared_extension_paths
@shared_extension_paths ||= begin
if ENV["HOME"] && File.directory?(ENV["HOME"])
[File.expand_path("~/.compass/extensions")] [File.expand_path("~/.compass/extensions")]
else
[]
end
end
end end
module_function :base_directory, :lib_directory, :shared_extension_paths module_function :base_directory, :lib_directory, :shared_extension_paths
extend QuickCache extend QuickCache