From: Fung David Date: 2001-02-11T08:01:42+09:00 Subject: [ruby-talk:10686] Re: Q: Search path for require ($:) in my case, the cgi scripts are nested, so probably i will have to check first before i push the path? if not $:.include?("path/to/lib") then $:.push "path/to/lib" end ... getting a bit clumsy :( On Sat, 10 Feb 2001 19:41:48 +0900, Fung David wrote: > mmm, how about if i am using ruby in a cgi environment? where should i run > this command: set the environment variable RUBYLIB.... you could put $:.push "path/to/lib" require "lib" at the top of your script. Instead of hardwiring the path string, you could also read it from some other well-known location, e.g. a file or a directory service. Michel _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.