From: Gideon King Date: 2008-08-27T12:14:35+09:00 Subject: Re: ENV['_'] present on MacOS X, missing on OpenBSD Gideon King wrote: > 3. If it is indeed returning the name of the folder where the script is > executing from, couldn't I jusr replace it with: > > require(RAILS_ROOT + '/config/environment') > of course that won't work because we are not in the rails environment. I saw that there was another line in the ferret source that was commented out, and tried that instead, and it is working: require(File.join(File.dirname(__FILE__), '../../../../config/environment')) don't know if there are any downsides to doing it that way, but at least I'm up and running. Gideon -- Posted via http://www.ruby-forum.com/.