Ignore:
Timestamp:
2011-08-03T21:17:30+12:00 (13 years ago)
Author:
ak19
Message:

The method of locating perl has changed once more: util now defines the fuction get_perl_exec which is used by other scripts to obtain the path to the perl executable they should use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/ConvertToRogPlugin.pm

    r24225 r24362  
    3131use strict;
    3232no strict 'refs'; # allow filehandles to be variables and viceversa
    33 use Config; # for getting the perlpath in the recommended way
     33use util;
    3434
    3535sub BEGIN {
     
    122122    # making sure the converter gives us the appropriate output type
    123123    my $output_type = lc($convert_to);
    124     my $cmd = "\"$Config{perlpath}\" -S gsMusicConvert.pl -verbose $verbosity -errlog \"$errlog\" -output $output_type \"$tmp_filename\"";
     124    my $cmd = "\"".&util::get_perl_exec()."\" -S gsMusicConvert.pl -verbose $verbosity -errlog \"$errlog\" -output $output_type \"$tmp_filename\"";
    125125    $output_type = `$cmd`;
    126126
Note: See TracChangeset for help on using the changeset viewer.