Hi, not entirely sure why you need the directory the same as the file, but
every time I've needed that, it had to do with relative positioning of
files. If that's the case for you, then you might check out this blog entry,
which I found pretty helpful
···
On Fri, May 14, 2010 at 11:30 AM, Gianluca Rettore <gladenko@gladenko.com>wrote:
Hi my problem is this
i have a script in direcory ex
c:\temp\pippo.rb
this script have this code
a= Dir.pwd()
puts a
if i exec a script from another directory there is a problem. The script
write a path of ruby exec and not the path of script ex