Hi,

At Mon, 18 Oct 2004 22:51:06 +0900,
Gavin Kistner wrote in [ruby-talk:116961]:
> I want relative require paths, in addition to 'absolute':
> 
> app/run.rb
> app/code/app.rb
> app/code/k1.rb
> app/code/k2.rb
> app/code/k3/k3.rb
> app/code/k3/k4.rb
> app/code/lib/foo.rb
> 
> % cat run.rb
> require 'code/app'
> $app = App.instance
> $app.run
> 
> % cat code/app.rb
> require 'k1'; require 'k2'; require 'k3/k3' #RELATIVE

Not 'code/k1' and so on?

> % cat code/k1.rb
> require 'lib/foo.rb' #RELATIVE
> 
> % cat code/k3/k3.rb
> require 'k4' #RELATIVE
> 
> % cat code/k3/k4.rb
> require 'code/lib/foo.rb' #~ABSOLUTE

It's not called absolute, I guess.

-- 
Nobu Nakada