From: Mark Wilson Date: 2003-05-20T01:40:10+09:00 Subject: Re: The interpreter path Two notes as to the following for completeness: 1. Script needs require 'shell' 2. This works for Unix -- I don't know if it works for Windows, but would guess that it does. On Monday, May 19, 2003, at 12:36 PM, Mark Wilson wrote: > 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. > >