From: ptkwt@... (Phil Tomson) Date: 2003-12-19T13:06:56+09:00 Subject: Re: Running Ruby from a CD In article <200312180750.hBI7oH30004713@sharui.nakada.kanuma.tochigi.jp>, wrote: >Hi, > >At Thu, 18 Dec 2003 12:36:55 +0900, >Phil Tomson wrote: >> ..\bin\ruby makebat.rb #creates a bat file in %TEMP% that sets up env vars >> %TEMP%setenv.bat #sets up TCL and TK env vars Ruby needs >> ..\bin\ruby main.rb #starts a little Ruby/TK gui >> >> >> makebat.rb just creates a batch file in %TEMP% to set the RUBY_TCL_LIB and >> RUBY_TK_LIB env variables. > >You can set those RUBY_(TCL|TK)_DLL variables before requiring >tcltklib even in main.rb. Yeah, that's true; it would be much simpler. I think I did it the other way because I also needed to setup some other env vars that another app needed too, but maybe I can get by without it. Phil