From: Nicholas Van Weerdenburg Date: 2005-01-17T16:09:00+09:00 Subject: Re: require of a .file Ah. Thanks. That would be it. My goal was to use the .xxxrc convention, but actually execute it rather then read and parse it. I expect "load" should suffice. Does anyone know of any ruby code that does something similar? Thanks, Nick On Mon, 17 Jan 2005 16:01:20 +0900, Greg Millam wrote: > Nicholas Van Weerdenburg wrote: > > I'm attempting to do a user config file as a ruby script to be > > required- e.g. ~/.myrc > > > > load ENV['HOME'] + "/.myrc" > > works, but "require" fails in its place saying it can't find .myrc. Is > > this a bug in require? > > 'require' tacks on ".rb" and ".so" to the filename to find it. > > So unless it's named ".myrc.rb," require won't find it. > > - Greg > > -- Nicholas Van Weerdenburg