Best way to do this is add them at execute time with $LOAD_PATH

I do this in your ruby script before the require.


$LOAD_PATH.insert(0, '/home/username/apps/app1/lib')
$LOAD_PATH.insert(0, '/home/username/apps/app2/lib')
$LOAD_PATH.insert(0, '/home/username/apps/app3/lib')

So what you pointed out I would think you would want to do, I broke it 
down into a few extra lines, just to keep a "one thing per line example"


homeDir = "#{ENV['HOME']}"
directoryOne = "#{homeDir}/OT/usr/local/lib/site_ruby/1.8/"
directoryTwo = "#{homeDir}/OT/usr/local/lib/site_ruby/1.8/x86_64-linux/"

$LOAD_PATH.insert(0, directoryOne)
$LOAD_PATH.insert(0, directoryTwo)

-- 
Posted via http://www.ruby-forum.com/.