From: Joel VanderWerf Date: 2008-04-24T04:00:21+09:00 Subject: Re: $LOADPATH Chinna Karuppan wrote: > Hi, > I am using irb and when ever i open IRB session I have to update my > $LOADPATH with my ruby program directory. $LOADPATH << "c:/rb" .How can > I avoid this.becauze I find some paths already set.So I was checking the > environment variables in windows.I didn't find any loadpath... > Any suggestion > THnks > Chinna The env var is RUBYLIB, the global is $LOAD_PATH or $:. This is on linux but should illustrate the relationship: $ RUBYLIB="foo" ruby -e 'p $LOAD_PATH' ["foo", "/usr/local/lib/ruby/site_ruby/1.8", "/usr/local/lib/ruby/site_ruby/1.8/i686-linux", "/usr/local/lib/ruby/site_ruby", "/usr/local/lib/ruby/1.8", "/usr/local/lib/ruby/1.8/i686-linux", "."] -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407