Afficher un message
Vieux 14/09/2007, 07h15   #6
Une Bévue
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Cross-platform Home Directory?

Joel VanderWerf <vjoel@path.berkeley.edu> wrote:

> I have no idea what is right on OS X.


ENV[ 'HOME' ]

for example my "home" is :

/Users/yt

(never tried the File.expand_path('~') ) BUT on Mac OS X shell ~ expand
to home.

also i worry about the way win* representent pathes with \

does that means that, in ruby, there is no platform-independant way to
representant pathes, as, for example in Java ?
--
La politique est l'art d'empécher les gens
de se méler de ce qui les regarde.
Paul Valéry
  Réponse avec citation
 
Page generated in 0,06674 seconds with 9 queries