From: Gavin Kistner Date: 2006-10-25T03:09:19+09:00 Subject: Re: Getting path of current script From: Joe Ruby MUDCRAP-CE > Is there a simpler way to get the absolute path of the current script? > > path = File.dirname(File.expand_path(__FILE__)) Under some circumstances (like, you haven't changed the working directory, and you can ensure that the working directory is the same as the script) Dir.pwd might be all you need, right?