From: Patrick Gundlach Date: 2007-01-24T02:16:32+09:00 Subject: Re: tar2rubyscript: getting the path of the original executa Erik Veenstra wrote: > ---------------------------------------------------------------- > > $ cat application/init.rb > p $0 > p __FILE__ Thanks Erik, but obviously I wasn't clear. I need the path to the old .rb file, the one that is distributed and contains the tar file, not the one in the temporary directory. With __FILE__ and $0 I get the new location, with oldlocation I only get the last PWD and not the location of the tar/rb file. Patrick -- Posted via http://www.ruby-forum.com/.