Changeset 178

Show
Ignore:
Timestamp:
02/27/06 01:56:35
Author:
youpy
Message:

Use Findbin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Template.pm

    r39 r178  
    22use strict; 
    33use base qw( Template ); 
     4 
     5use FindBin; 
     6use File::Spec; 
    47 
    58use Template::Provider::Encoding 0.04; 
     
    912    my($class, $context) = @_; 
    1013 
    11     my $path = $context->conf->{template_path} || 'templates'
     14    my $path = $context->conf->{template_path} || File::Spec->catfile($FindBin::Bin, "templates")
    1215    my $paths = [ $path, "$path/plugins" ]; 
    1316