From 6ca7232c409beeeea23c1ea98d9a6573815beaf9 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Wed, 26 Apr 2017 20:25:37 -0400 Subject: fix @INC for bulk_index --- scripts/bulk_index.pl | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'scripts') diff --git a/scripts/bulk_index.pl b/scripts/bulk_index.pl index d501ded39..1746bc868 100755 --- a/scripts/bulk_index.pl +++ b/scripts/bulk_index.pl @@ -8,6 +8,16 @@ use strict; use warnings; use 5.10.1; + +use File::Basename; +use File::Spec; +BEGIN { + require lib; + my $dir = File::Spec->rel2abs(File::Spec->catdir(dirname(__FILE__), "..")); + lib->import($dir, File::Spec->catdir($dir, "lib"), File::Spec->catdir($dir, qw(local lib perl5))); + chdir($dir); +} + use Bugzilla; BEGIN { Bugzilla->extensions } -- cgit v1.2.3-24-g4f1b