On Thu, Apr 25, 2002 at 04:07:45PM +0900, Tobias Reif wrote:
> ... instead it searches them from the running program's directory 
> (=working directory)(?)
> 
> Sometimes I wish each require would be resolved relative to the file 
> it's written in; would save some $:.shifts; but I probably don't see all 
> the implications.

I agree completely.  This is why I wrote 'requirelocal':

  http://rm-f.net/~cout/ruby/treasures/RubyTreasures-0.4/lib/hacks/loaders.rb.html

I use it quite a lot, and it has shown to be much more reliable then
requring from the cwd (and is a lot cleaner than $:.shift).

Paul