From: Austin Ziegler Date: 2003-03-20T05:39:45+09:00 Subject: Re: Find::Bin, use lib, in ruby On Thu, 20 Mar 2003 03:03:09 +0900, Daniel Bretoi wrote: > problem: > > I have my own set of libraries located relative to my script in > ../lib i.e. my configuration is something like > > rubyscripts/bin/script.rb > rubyscripts/lib/libforscript.rb > > How can I tell script.rb where to look for libforscript.rb without > having to use absolute paths? In bin/script.rb: $: << "../lib" Now you can: require 'libforscript' -austin -- Austin Ziegler, austin@halostatue.ca on 2003.03.19 at 13:33:42