From: Trans Date: 2005-09-07T09:36:28+09:00 Subject: Resuable snip to put at the top of my tests f=['..','lib'] until File.directory?(th=f.join('/')) raise 'cannot find lib directory' if File.expand(th) == '/lib' f.unshift('..') end $:.unshift(th) Better ones? T.