From: Tom Felker Date: 2003-05-20T08:22:25+09:00 Subject: Re: The interpreter path On Mon, 2003-05-19 at 10:58, Gennady wrote: > Hi, fellow rubyists > > Is there a way to get the path for the Ruby interpreter itself from > withing a script? I see rb_argv0 in Ruby 1.6.8 source, however I > cannot find the binding to a Ruby constant or some other means to > obtain it. Is there any? > > Gennady. If there isn't a better Ruby way (if not, there should be), in Linux, /proc/yourpid/exe points to that executable. -- Tom Felker Miss work? But my life would be nothing without the nucleon plant. -- Homer, The Simpsons