Ignore:
Timestamp:
2011-06-22T17:39:13+12:00 (13 years ago)
Author:
ak19
Message:

Sam discovered that using dollar-Config{perlpath} in place of dollar-hat-X is the better way to obtain the path to the perl that is being used. We hope this will not be a relative path on the Mac as dollar-hat-x was on Professor Witten's Mac when we tried it there today.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/gsConvert.pl

    r24169 r24192  
    4949
    5050    if(!$ENV{'PERLPATH'}) {
    51     my $full_perl_exec = $^X;
     51    my $full_perl_exec = $Config{perlpath}; #$^X;
    5252    require File::Basename;
    5353    my $perl_path = File::Basename::dirname($full_perl_exec);
     
    6262use util;
    6363use Cwd;
     64use Config; # for getting the perlpath in the recommended way
     65# Note: even though this (and other) use statement comes after its
     66# usage in BEGIN, the use statement is in fact executed before BEGIN.
     67
    6468
    6569# Are we running on WinNT or Win2000 (or later)?
Note: See TracChangeset for help on using the changeset viewer.