From: Chinna Karuppan Date: 2008-04-24T04:05:17+09:00 Subject: Re: $LOADPATH Works .Saved some time for me! Thank you THnks Joel VanderWerf wrote: > 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", "."] -- Posted via http://www.ruby-forum.com/.