From: Patrick Roemer Date: 2002-11-13T02:30:02+09:00 Subject: Re: Load path for eruby Hi, Alan Chen wrote: > Within the script you can alter the $LOAD_PATH variable. > > $LOAD_PATH.unshift('/path/to/somewhere' [trying it] Duh, this works! I had thought about it, but I interpreted the '[r/o]' comment on $LOAD_PATH in the pickaxe book as read-only, so I didn't try it out. > Or, you could always give require a fully specified path > > require '/usr/lib/myrubylib/stuff.rb' This is not so nice, because requires in stuff.rb would also need to have fully qualified paths. Modifying $LOAD_PATH works ok for me at the moment, I guess. Thanks a lot. Regards, Patrick