From: Daniel Berger Date: 2007-01-28T16:01:03+09:00 Subject: Re: best way to access directory relational to current file phil.swenson@gmail.com wrote: > I'm trying to find the full path to a file. File.dirname(__FILE__) > always returns ".", which doesn't really do me any good. The working > directory is not always the same as where the file is, so I can't use > the "." in any useful way. I think you want File.expand_path(File.dirname(__FILE__)) Regards, Dan