Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Setting RUBYLIB
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Stu Glaser, post: 4490917"] Hi, I currently have a project with two files. I want to include one file from the other without specifying the entire path. Here's what I'm trying to do: File: ./app/control/first.rb puts "HELLO" File: ./main.rb ENV['RUBYLIB'] = "./app" require 'control/first.rb' However, it refuses to find the script ('require': No such file to load -- control/first.rb) When I set RUBYLIB from the (bash) shell, the program runs correctly. How can I set it inside the main ruby program? Thanks, -Stu Glaser [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Setting RUBYLIB
Top