from within a running program. I want to distribute a program
that can be installed in a folder chosen by the user. The
program would save configuration information in the same
folder. In order to find the configuration file at runtime, I
thought I would query the full path of the Ruby interpreter
or script file. In case it makes a difference, I’m using Windows.Jamal
Is this what you’re after?
require ‘rbconfig’
include Config
puts CONFIG[‘bindir’] # c:/ruby/bin
Regards,
Dan