On 14 September 2011 19:39, Quintus <sutniuq / gmx.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Am 14.09.2011 15:35, schrieb Michal Suchanek: >> Hello, >> >> is any way to get the running interpreter path? >> >> I found some people asking for it but no solution. >> >> I don't want to know where the interpreter was installed, I want >> to know where it was run from. > > I'm not sure what you mean, but it seems you don't want the RbConfig > thing, i.e. > > require "rbconfig" > File.join(RbConfig::CONFIG["bindir"], > RbConfig::CONFIG["ruby_install_name"]) > This is probably going to suffice. I would have to ask on what ruby is the test running if it does not. Thanks everybody for all the replies Michal