Handle homeless users. Closes GH-364.
This commit is contained in:
parent
2cafc616b6
commit
ea6e15b8a4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user