From: Tobias Reif Date: 2001-11-03T08:03:32+09:00 Subject: [ruby-talk:24225] Re: require '../foo/bar' David Alan Black wrote: > If you put this at the top of a: > > $:.unshift "subdir_name" > > that should work. That's what I tried before, and that's where I probably made a typo; now it works. (unshift in a, require in b) And you know what? When I leave off the require line in b, Ruby finds the required class in c all by itself (b and c are in the same dir). (when I remove the file c from the dir, I get a loadError) ruby 1.6.3 (2001-03-19) [i386-cygwin] So now it works without any $:.unshift, and without any require in b. Funny world. Adding the require in b brings the loadError, which can be solved by unshifting the path in a. Tobi -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.xhtml go_to('www.ruby-lang.org').get(ruby).play.create.have_fun http://www.pinkjuice.com/ruby/