From: Jason Creighton Date: 2003-07-10T01:12:18+09:00 Subject: Re: Integrations tests and $: On Wed, 9 Jul 2003 03:37:21 +0900 Jim Freeze wrote: > I have tried the following: > > system("ruby -r ../lib myapp") > > but get the error: > > No such file to load -- ../lib (LoadError) ~$ echo '$var = "Hello, world!"' > /tmp/hello.rb ~$ ruby -r /tmp/hello.rb -e 'p $var' "Hello, world!" ~$ ruby -I /tmp -e 'require "hello";p $var' "Hello, world!" ~$ You want -I to add a path to $LOAD_PATH ($:'s sane alias). Or, as Brian Candler pointed out, you could use RUBYLIB, probably the easiest option. Jason Creighton