From: badboy Date: 2009-01-14T00:02:32+09:00 Subject: Re: rakefile "$0" path in rake Peter Pk schrieb: > Is there a way to get the path to "itself" in a rakefile loaded by rake? > > ie for: > rake --rakefile ../../some/path/to/rakefile.rb > > *** > > inside rakefile > > myPath = # ???? > p "running #{myPath}" try using the "magic variable" __FILE__ ?