Skip to content

Commit

Permalink
Change local library path after moving "pdf_data" script to "bin".
Browse files Browse the repository at this point in the history
  • Loading branch information
deven committed Jun 24, 2022
1 parent e34c88b commit c046ac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/pdf_data
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ use warnings;
use version; our $version = version->declare('v1.0.0');

# Initialize modules.
use File::Basename qw[basename];
use File::Basename qw[basename dirname];
use FindBin;
use Getopt::Long qw[:config gnu_compat bundling no_getopt_compat require_order];
use IO::Handle qw[autoflush];
use POSIX qw[strftime];

# Use local library path if PDF::Data module exists there.
use if -f "$FindBin::Bin/lib/PDF/Data.pm", "lib", "$FindBin::Bin/lib";
use if -f "@{[dirname $FindBin::Bin]}/lib/PDF/Data.pm", "lib", "@{[dirname $FindBin::Bin]}/lib";

# Load PDF::Data module.
use PDF::Data;
Expand Down

0 comments on commit c046ac5

Please sign in to comment.