From: Gordon Thiesfeld Date: 2007-09-14T04:54:34+09:00 Subject: Re: Cross-platform Home Directory? On 9/13/07, Glen Holcomb wrote: > On 9/13/07, Glen Holcomb wrote: > > > > On 9/13/07, Trans wrote: > > > > > > 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? > > > > > > Thanks, > > > T. Rubygems has a method for finding this: C:\>irb -rubygems >> Gem.user_home => "C:\\Documents and Settings\\gthiesfeld"