From: Andrew Walrond Date: 2003-11-26T07:43:47+09:00 Subject: Re: Library path relative to current .rb file On Tuesday 25 Nov 2003 8:53 pm, Gavin Sinclair wrote: > On Wednesday, November 26, 2003, 5:59:45 AM, Andrew wrote: > > On Tuesday 25 Nov 2003 9:21 am, Gavin Sinclair wrote: > >> require 'pathname' > >> dir = Pathname.new(File.expand_path(__FILE__)).realpath Even better, dir = Pathname.new(__FILE__).expand_path.realpath