From: matt@... (matt neuburg) Date: 2009-02-15T04:58:33+09:00 Subject: Re: Ruby CLASSPATH Jeff Moore wrote: > matt neuburg wrote: > > Slaine wrote: > > > >> > >> There seems to be something wrong with the path where ruby tries to > >> find external folders. Does anyone have any idea how I could add it? > > > > You can modify $: in your code before the require (it's an array, just > > append to it). If this is to be a more permanent change you can modify > > your environment's RUBYLIB. > > > > m. > > In the same vain you can run this: > > ruby -e 'p $:' > > To obtain the paths currently being searched... Unless $: has *already* been altered by the load system. For example, on Mac OS X using TextMate, saying ruby -e 'p $:' and asking for $: in code will give two very different answers. So I recommend doing the latter. m. -- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ Leopard - http://www.takecontrolbooks.com/leopard-customizing.html AppleScript - http://www.amazon.com/gp/product/0596102119 Read TidBITS! It's free and smart. http://www.tidbits.com