From: James Edward Gray II Date: 2005-09-07T11:38:55+09:00 Subject: Re: Resuable snip to put at the top of my tests On Sep 6, 2005, at 7:36 PM, Trans wrote: > 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? Well, I doubt you wanted this answer, but isn't this a lot cleaner? $ ruby -I lib:test ts_all.rb James Edward Gray II