From: Paul Brannan Date: 2002-09-18T02:07:37+09:00 Subject: Re: How to tell what directory the current file is in? On Wed, Sep 18, 2002 at 01:28:55AM +0900, Philip Mak wrote: > File.find('entity') do |f| > load f if f =~ /\.rb$/ > end absolute_filename = File.expand_path(__FILE__, Dir.getwd) full_path = File.dirname(absolute_filename) Find.find(File.join(full_path, 'entity')) do |f| load f if f =~ /\.rb$/ end