>>>>> On Tue, 24 Feb 2009 16:49:46 -0800, Thomas George 
>>>>> <[email protected]> said:

TG> Still striking out on this... I thought I have a working solution, however
TG> this dosn't work the way I thought it would.

I do this for my app by putting the new files I need into a subdirectory
where I run pp...  And then putting each thing in a list file which I
pass to pp through the -A flag.

The trick, though, is you need to look for the files in the right
location.  The easiest way to do this is by checking the PAR_TEMP
environment variable, which lets you know you're running within PAR:

    if ($ENV{'PAR_TEMP'}) {
        my $searchdirectory = "$ENV{'PAR_TEMP'}/foo/"
    }

Then do the same thing with the .exe file so that it can be found (I
haven't tried this on windows, so I'm only guessing that it works.  I'll
try it soon, but there must be some variable to set if PATH doesn't work).

    if ($ENV{'PAR_TEMP'}) {
        $ENV{'PATH'} .= ":$ENV{'PAR_TEMP'}/exesubdir/";
    }

-- 
"In the bathtub of history the truth is harder to hold than the soap,
 and much more difficult to find."  -- Terry Pratchett

Reply via email to