[Catalyst] Identifying the home dir

samwyse samwyse at gmail.com
Thu Jul 21 21:03:08 CEST 2005


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...


More information about the Catalyst mailing list