Skip to content

Commit

Permalink
JBlibs: don't die if the extlib/ isn't found. people might want to ru…
Browse files Browse the repository at this point in the history
…n with their own libs
  • Loading branch information
rbuels committed Apr 8, 2012
1 parent 395f018 commit 9257a93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/JBlibs.pm
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ for my $d ( $dir, catdir( $dir, updir() ), catdir( $dir, updir(), updir() )) {
$extlib = catfile( $d, 'extlib' );
last if -e $extlib;
}
die "cannot find JBrowse root directory ($extlib)" unless -e $extlib;

require local::lib;
local::lib->import( $extlib );
if( -e $extlib ) {
require local::lib;
local::lib->import( $extlib );
}

1;

0 comments on commit 9257a93

Please sign in to comment.