B
Burdette Lamar
[Note: parts of this message were removed to make it a legal post.]
The local filetree corresponding to source control is not in the same location on all machines.
Therefore, the needed Ruby $LOAD_PATH varies from one machine to another.
I can control this from a script of course. I can, for example, addthis to the top of a script that's two levels below the 'root':
require 'pathname'
home_path = Pathname.new(File.join(File.dirname(__FILE__), '../..')).realpath
$LOAD_PATH.push home_path unless ($LOAD_PATH.index(home_path))
This works, but is it best? Is there best practice for this sort ofthing?
Thanks, Burdette
The local filetree corresponding to source control is not in the same location on all machines.
Therefore, the needed Ruby $LOAD_PATH varies from one machine to another.
I can control this from a script of course. I can, for example, addthis to the top of a script that's two levels below the 'root':
require 'pathname'
home_path = Pathname.new(File.join(File.dirname(__FILE__), '../..')).realpath
$LOAD_PATH.push home_path unless ($LOAD_PATH.index(home_path))
This works, but is it best? Is there best practice for this sort ofthing?
Thanks, Burdette