[Bioperl-l] WrapperBase

Caroline Johnston johnston at biochem.ucl.ac.uk
Fri Feb 9 19:23:41 UTC 2007


Hi,

Could WrapperBase::executable warn you if it doesn't find the exe in
program_path? At the moment it just silently goes ahead and uses one in
the system path if it exists.

Cass.

I've never used diff, so not sure if this is right, but:

305,308c305,314
<        if( $prog_path && -e $prog_path && -x $prog_path ) {
<            $self->{'_pathtoexe'} = $prog_path;
<        } else {
<            my $exe;
---
>        if($prog_path){
>        if(-e $prog_path && -x $prog_path){
>          $self->{'_pathtoexe'} = $prog_path;
>        }
>        else{
>          $self->warn("executable not found in $prog_path, trying system
path...") if $warn;
>        }
>        }
>        unless ($self->{_path_to_exe}){
>        my $exe;
335a342




More information about the Bioperl-l mailing list