From: Intransition Date: 2010-06-24T21:36:14+09:00 Subject: Re: Finding a project's root directory On Jun 23, 7:02 pm, Tony Arcieri wrote: > In cases where I actually need this, I usually have a "root" method defined > on the class/module that represents the project.  This is usually calculated > from __FILE__ based off the file where the "root" method is defined.  I > prefer to have this be the only usage of __FILE__ in the entire project, if > possible. I need to find the root external to the project itself. In fact I would be very weary of ever looking up a project's root from within the project's code. Different install setups will not necessarily keep a project intact.