diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-02 04:52:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-02 04:52:03 +0000 |
commit | 6926a10297982f09312b4da3a3bb14f28e877978 (patch) | |
tree | 52e5fbec7ade0fab227be301a104ceffa578f803 /lib/rdoc/ri | |
parent | 2553a96f9eb29ca334d713aa1830f5cce3045f86 (diff) | |
download | ruby-6926a10297982f09312b4da3a3bb14f28e877978.tar.gz |
* lib/rdoc/ri/paths.rb (RDoc::HOMEDIR): expand_path deals with
platform dependent envirionments. reapplied r21312.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/ri')
-rw-r--r-- | lib/rdoc/ri/paths.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/rdoc/ri/paths.rb b/lib/rdoc/ri/paths.rb index 178142d35f..7090a58d44 100644 --- a/lib/rdoc/ri/paths.rb +++ b/lib/rdoc/ri/paths.rb @@ -13,12 +13,8 @@ module RDoc::RI::Paths base = File.join RbConfig::CONFIG['datadir'], "ri", version SYSDIR = File.join base, "system" SITEDIR = File.join base, "site" - homedir = File.expand_path('~') || - ENV['HOME'] || ENV['USERPROFILE'] || ENV['HOMEPATH'] + HOMEDIR = (File.expand_path("~/.rdoc") rescue nil) - HOMEDIR = if homedir then - File.join homedir, ".rdoc" - end #:startdoc: @gemdirs = nil |