From 6810bb25532af3b0875786691520a41d53d6894a Mon Sep 17 00:00:00 2001 From: "Zimmer, Andras" Date: Tue, 28 May 2013 14:07:05 +0200 Subject: [PATCH] enable Windows users to specify an alternate home directory (so as to avoid problems with non-English account names) --- lib/heroku/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/heroku/helpers.rb b/lib/heroku/helpers.rb index c840fdc51..a82917ce1 100644 --- a/lib/heroku/helpers.rb +++ b/lib/heroku/helpers.rb @@ -6,7 +6,7 @@ module Helpers extend self def home_directory - running_on_windows? ? ENV['USERPROFILE'].gsub("\\","/") : ENV['HOME'] + running_on_windows? ? (ENV['HEROKU_HOME'] || ENV['USERPROFILE']).gsub("\\","/") : ENV['HOME'] end def running_on_windows?