lucy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Karman <>
Subject Re: [lucy-dev] @INC complexities now that Clownfish runtime is separate
Date Thu, 05 Dec 2013 17:17:06 GMT
On 12/4/13 7:13 PM, Marvin Humphrey wrote:

> A nasty little workaround is put some `use lib` directives at the top of
> devel/benchmarks/indexers/lucy_indexer.plx which allow it to be run from
> within `$REPOS_ROOT/perl/`.  I think that's our only realistic option, right?

I don't know how nasty it is. I usually do something like:

use FindBin;
use lib "$FindBin::Bin/../lib";

in many of my cli scripts, to solve this very problem. Of course, the 
number of ../lib levels depends on the file struct.

Peter Karman  .  .

View raw message