From: Phillip Gawlowski Date: 2010-01-02T11:57:09+09:00 Subject: Re: How to get the directory of the current script? On 02.01.2010 03:33, Kimball Johnson wrote: > As to getting the parent directory of a file, try this: > > File.dirname(File.dirname(__FILE__)) > > or for the absoluter path: > > File.expand_path(File.dirname(File.dirname(__FILE__))) > > dumb but smart? require "futils" puts Dir.pwd -- Phillip Gawlowski