Mike Fletcher wrote:

>Matthew John wrote:
>  
>
>>Hi All,
>>
>>How do I find out which directory my ruby script was run from?
>>    
>>
>
>Maybe Dir.getwd?
>
>------------------------------------------------------------- Dir::getwd
>     Dir.getwd => string
>     Dir.pwd => string
>------------------------------------------------------------------------
>     Returns the path to the current working directory of this process
>     as a string.
>
>        Dir.chdir("/tmp")   #=> 0
>        Dir.getwd           #=> "/tmp"
>  
>
I use File.dirname($0).

Jamey Cribbs

Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. If you are not the intended recipient(s), you are hereby notified that any dissemination, unauthorized review, use, disclosure or distribution of this email and any materials contained in any attachments is prohibited. If you receive this message in error, or are not the intended recipient(s), please immediately notify the sender by email and destroy all copies of the original message, including attachments.