From: Gennady Date: 2003-05-20T01:54:49+09:00 Subject: Re: The interpreter path Unfortunatelly, this will give me an interpreter found in the current PATH, it will not be the right one if the interpreter has been invoked with an absolute path that is not in PATH variable. I rather need the interpreter path invoked to handle THIS particular code. Thanks for suggestion anyway. Gennady. ----- Original Message ----- From: "Mark Wilson" To: "ruby-talk ML" Sent: Monday, May 19, 2003 9:36 AM Subject: Re: The interpreter path One way is: Shell.new.find_system_command('ruby') which returns the path as an object of class String. On Monday, May 19, 2003, at 11:58 AM, 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.