From: James Edward Gray II Date: 2006-02-11T03:02:35+09:00 Subject: Re: How to find the current path? On Feb 10, 2006, at 11:48 AM, Paatsch, Bernd wrote: > Hello, > > I am fairly new to ruby and wonder if there is a class/method that > returns > the absolute path of the current directory (the directory I execute > the ruby > script from)? I believe this is what you are after: $ ruby -e 'p Dir.pwd' "/Users/james" Hope that helps. James Edward Gray II