From: Victor Shepelev Date: 2006-06-07T09:04:36+09:00 Subject: Re: DLL load path From: Logan Capaldo [mailto:logancapaldo@gmail.com] Sent: Wednesday, June 07, 2006 2:57 AM > On Jun 6, 2006, at 7:50 PM, Victor Shepelev wrote: > > > Hi all. > > > > The strange question: I need modify path, where .dll's would be > > looked for > > (from ruby script). > > > > For ex. > > > > require 'raspell' #bang! 'aspell.dll could'nt be found > > > > I need something like > > > > setenv('PATH', getenv('PATH') + '') > > > > but also I want PATH system variable not be changed after my script is > > stopped... > > > > I think question is dumb, but really don't know, where to look for > > answer. > > And again, sorry for my poor English. > > > > Thanks. > > > > Victor. > > > > > > $LOAD_PATH << > require 'raspell' Hmmm... I think it would only affect Ruby modules, not Windows dll's My example was not clear. It meant: require 'raspell' => load raspell.so (ruby module), which would try to load aspell.dll (plain C dll). And it would look for aspell.dll only in and system PATH, not ruby's $LOAD_PATH, IMO. V.