Afficher un message
Vieux 13/09/2007, 20h49   #3
Daniel Berger
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Cross-platform Home Directory?



On Sep 13, 1:37 pm, Joel VanderWerf <vj...@path.berkeley.edu> wrote:
> 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?

>
> This is one way of guessing:


<snip>

I think the appdata directory is where you want it for MS Windows. You
can use win32-dir, since the environment variable may not be defined:

when /mswin/
require 'win32/dir'
Dir::APPDATA

Regards,

Dan


  Réponse avec citation
 
Page generated in 0,05443 seconds with 9 queries