From: Stefan Rusterholz Date: 2007-09-01T23:22:48+09:00 Subject: Re: setup.rb and shared data Stefan Rusterholz wrote: > Hi > > I'm using rake+setup.rb to create a gem. It has a data-dir which is > supposed to go into the shared data directory. My issue now is: how do I > know in the executable where that data-dir went? > Similar thing for the conf directory. > > Regards > Stefan Thanks to cout in irc.freenode.org/#ruby-lang I solved my problem. In case somebody googles this thread due to the same problem, here's the solution: require 'rbconfig' data_dir = Config::CONFIG['datadir'] Regards Stefan -- Posted via http://www.ruby-forum.com/.