From: Assaph Mehr Date: 2005-06-03T11:05:23+09:00 Subject: [OT] requiring files Gennady Bystritksy wrote: > Joe Van Dyk wrote: > > Hi, > > > > If I start a Ruby application from a different directory than what the > > executed file is in, Ruby can't find the other files that the executed > > file requires (that are in the same directory as the executed file). > > > > Any ideas on ways to fix that? > > > $:.push File.expand_path(File.dirname(__FILE__)) I always prefer the verbose name of the globals: $LOAD_PATH.push File.expand_path(File.dirname(__FILE__)) Look at the 'english' library in the stdlib: ruby/lib/ruby/1.8/english.rb