Skip to content

Commit

Permalink
Item14237: Using Foswiki::guessLibDir for finding specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed Apr 27, 2017
1 parent 72e8cef commit b377ec4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/lib/Foswiki/Config/Spec/Files.pm
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,9 @@ sub prepareBaseDir {
my $this = shift;

# Even in case we get extensions modules spread acroos the filesystem at
# some point the spec files are expected to be located where Foswiki.pm is.
my ( $vol, $dir ) = File::Spec->splitpath( $INC{'Foswiki.pm'} );

return File::Spec->catpath( $vol, $dir );
# some point the spec files are expected to be located where Foswiki.pm is -
# i.e. in lib/ dir.
return Foswiki::guessLibDir;
}

sub prepareCacheDir {
Expand Down

0 comments on commit b377ec4

Please sign in to comment.