Afficher un message
Vieux 14/09/2007, 05h25   #5
Nobuyoshi Nakada
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Cross-platform Home Directory?

Hi,

At Fri, 14 Sep 2007 04:19:04 +0900,
Trans wrote in [ruby-talk:268970]:
> I have a little app that needs to store session data. I assume the
> best place to store it is in one's home directory, but I need this app
> to be cross-platform. I glanced through all rbconfig.rb's
> Config::CONFIG settings but did not see anything for it. How does one
> access a cross-platform home directory?


There is no static value.

FYI, in 1.9, if ENV["HOME"] isn't set, it will be set to
1) ENV["HOMEDRIVE"] + ENV["HOMEPATH"]
2) ENV["USERPROFILE"] or
3) "Personal" special folder
in the above order.

--
Nobu Nakada

  Réponse avec citation
 
Page generated in 3,00164 seconds with 9 queries