[Catalyst] Identifying the home dir

Sebastian Riedel sri at oook.de
Fri Jul 22 01:04:27 CEST 2005


Am 21.07.2005 um 21:03 schrieb samwyse:

> On 7/21/05, Sebastian Riedel <sri at oook.de> wrote:
>
>>
>> Am 21.07.2005 um 12:14 schrieb Krzysztof Krzyżaniak:
>>
>>
>>> Johan Lindstrom <johanl at DarSerMan.com> writes:
>>>
>>>
>>>> A thought regarding identifying the home dir (and hence, the
>>>> default root
>>>> dir for templates etc).
>>>>
>>>> &Catalyst::Utils::home looks for the presence of e.g. Build.PL and
>>>> Makefile.PL to anchor the home dir. Any thoughts on also using the
>>>> presence
>>>> of the dir "root" to locate the home dir? Any other markers that
>>>> could be
>>>> useful and considered stable?
>>>>
>>>
>>> I don't have root dir for example (I prefer 'htdocs' instead) but
>>> always
>>> have 'script' & 'lib' directory.
>>>
>>
>> Problem is we need something to identify that we are not installed
>> (make install), lib doesn't qualify there, maybe 'script'...
>>
>
> How about a large, robust set of criteria that can be used to score
> the possibilities?  May the best directory win...

And those would be?


--
sebastian




More information about the Catalyst mailing list