From: James Edward Gray II Date: 2007-03-02T23:04:11+09:00 Subject: Re: __PATH__ like __FILE__? On Mar 2, 2007, at 7:55 AM, Deniz Dogan wrote: > Hello. Hello. > I'm rather new to Ruby, so please bare with me. Welcome to Ruby then. > I just want to know if there is anything similar to __FILE__ but > which represents either the path to the directory which __FILE__ > lies in, or the __FILE__ including the full path to the file? Just ask Ruby to expand it for you: File.expand_path(__FILE__) Hope that helps. James Edward Gray II