From: Matt Mower Date: 2006-02-09T18:46:43+09:00 Subject: Re: Relocatable Ruby executable 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/