From: Brian Candler Date: 2008-10-28T06:18:08+09:00 Subject: Re: How to find directory of currently running .rb file Kenneth McDonald wrote: > __FILE__ is just giving me the file name, with no path, and Dir.getwd > is giving me an error: "ENOENT: No such file or directory." What is > the proper way to get this info? File.dirname(__FILE__) -- Posted via http://www.ruby-forum.com/.