J
Junkone
how to setup the ruby path that my code can look at runtime for the
libraries.
libraries.
how to setup the ruby path that my code can look at runtime for the
libraries.
Junkone said:ruby path
correct me if im wrong but wouldnt you just use the shebang? Of course
this would be if your libraries were in fact still in the default ruby
installation folders, the only reason you would need to use this would
be if u moved the entire ruby folder elsewhere. Sorry Thomas if this is
what u were explaining.
Thomas said:Changing the shebang would only change where to find the ruby
interpreter, _not_ where Ruby itself looked for its libraries. Of
course, there's every need during development to have various files
under some non-standard location (such as
~/projects/ruby/my_new_library) -- it is at this point that adding to
$LOAD_PATH is the right thing to do.
-- Thomas Adam
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.