Permalink
Browse files

Do not prefix Rails.root directory with another directory.

  • Loading branch information...
Nick Padgett
Nick Padgett committed Apr 4, 2011
1 parent 9340d5c commit 25cc989a22c840d62a05ed2c394797abfa6fe1c8
Showing with 8 additions and 8 deletions.
  1. +8 −8 lib/amazon.rb
View
16 lib/amazon.rb 100755 → 100644
@@ -90,17 +90,17 @@ def initialize(config_str=nil)
# Figure out where home is. The locations after HOME are for Windows.
# [ruby-core:12347]
#
- hp = nil
- if ENV.key?( 'HOMEDRIVE' ) && ENV.key?( 'HOMEPATH' )
- hp = ENV['HOMEDRIVE'] + ENV['HOMEPATH']
- end
- home = ENV['AMAZONRCDIR'] || ENV['HOME'] || hp || ENV['USERPROFILE']
+ # hp = nil
+ # if ENV.key?( 'HOMEDRIVE' ) && ENV.key?( 'HOMEPATH' )
+ # hp = ENV['HOMEDRIVE'] + ENV['HOMEPATH']
+ # end
+ # home = ENV['AMAZONRCDIR'] || ENV['HOME'] || hp || ENV['USERPROFILE']
user_rcfile = File.join(Rails.root, 'config/.amazonrc')
- if home
- config_files << File.expand_path( File.join( home, user_rcfile ) )
- end
+ # if home
+ # config_files << File.expand_path( File.join( home, user_rcfile ) )
+ # end
config_class = File
end

0 comments on commit 25cc989

Please sign in to comment.