From: Chad Perrin Date: 2007-03-03T04:28:26+09:00 Subject: Re: __PATH__ like __FILE__? On Sat, Mar 03, 2007 at 12:15:31AM +0900, George Ogata wrote: > On 3/3/07, Daniel DeLorme wrote: > >Olivier Renaud wrote: > >> You have to use the File.expand_path to do this : > >> > >> File.expand_path(__FILE__) > >> File.dirname(File.expand_path(__FILE__)) > > > >Or: > >File.expand_path(__FILE__+'/..') > > > >;-) > > > >Daniel > > Or even: > > File.expand_path('..', __FILE__) Ooh, that one's pretty. -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] Amazon.com interview candidate: "When C++ is your hammer, everything starts to look like your thumb."