I want to manage the way how Ruby searches modules to load. I found,
that the $: variable is in charge, but it is read-only. Then I found
that RUBYLIB can be used to add directories.
As I have c:/PJ/lib and c:/PJ/test for my Windows souces I entered via
RUBYLIB = ["c:/PJ/lib", "c:/PJ/test"] using the same Unix-style ("/"
instead of "\") as I saw in $:
When entered 'load "simple.rb"' I got "no such file to load".
How can I set RUBYLIB, or other variable to control the Ruby search?
PS. Changing slashes did not help
Thank you in advance
Posted via http://www.ruby-forum.com/.