On Sun, Mar 23, 2008 at 6:21 PM, James Keenan via RT
<[EMAIL PROTECTED]> wrote:
> On Sat Mar 22 10:38:42 2008, doughera wrote:
>
>  > Just be careful that 'use lib' doesn't look outside of the parrot source
>  > tree.  If pmc2c.pl is normally invoked from the root directory, then
>  > ../lib and ../../lib are looking outside of the parrot source.  This is
>  > wrong, since there is no guarantee that stuff stored in ../../lib is even
>  > remotely suitable for parrot, or indeed for any other use.
>  >
>
>  Suppose that at the top of tools/build/pmc2c.pl, we simply state this:
>
>  use Getopt::Long ();
>  use FindBin qw($Bin);
>  use lib "$Bin/../../lib";
>  use Parrot::Pmc2c::Pmc2cMain ();
>
>  $Bin here is tools/build/.  We go two levels up, then back down to the
>  lib/ underneath the top-level Parrot directory.  That lib/ is the one in
>  which we'll start looking for Parrot::Pmc2c::Pmc2cMain.
>
>  So that should mean we're not looking in the wrong places -- correct?
>
why not put the location of parrot's lib dir in
Parrot::Config::Generated, and look it up when needed?
~jerry

Reply via email to