From: Eko Budi Setiyo Date: 2005-01-11T18:23:43+09:00 Subject: Re: file location Yukihiro Matsumoto wrote: >Hi, > >In message "Re: file location" > on Tue, 11 Jan 2005 12:10:19 +0900, Eko Budi Setiyo writes: > >|What comand that I should you in file2.rb that will "automatically" >|produce result >|"/home/eko" >|"/home/eko/directory1/file2.rb" > >The current directory (which is returned from Dir.pwd) is something >different from the directory where the program are stored. What about >__FILE__ pseudo constant that shows the file name of the loading >program? > > matz. > > > > > I litle bit feel shame to admit it, but your suggestion is the shortest solution. Why I can't find this __FILE__ in all the tutorial that i read before I submit to this mailling list __FILE__ is the exactly what I want regards eko