------_extPart_001_01C62E75.6DD7A6C4
Content-Type: text/plain

Thanks,

Dir.pwd is what I was looking for.

Bernd 

-----Original Message-----
From: James Edward Gray II [mailto:james / grayproductions.net] 
Sent: Friday, February 10, 2006 10:03 AM
To: ruby-talk ML
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



------_extPart_001_01C62E75.6DD7A6C4--