From: Asfand Yar Qazi Date: 2006-02-09T22:33:23+09:00 Subject: Re: Relocatable Ruby executable Matt Mower wrote: > On 08/02/06, Asfand Yar Qazi wrote: > >>But what about when embedding Ruby in my app? How do I handle module paths then? >> > > > After initializing the interpreter you can use rb_eval_string() to > execute arbitrary Ruby statements and, for example, setup your library > path by executing (from memory): > > rb_eval_string( "$:.clear" ); > rb_eval_string( "$: << "my library path" ); > > Regards, > > Matt > > -- > Matt Mower :: http://matt.blogs.it/ > > Ah.... -- To reply, take of all ZIGs !!