$loadpath

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

···

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

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

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/\.