diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-04-27 02:25:37 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-04-28 02:23:09 +0200 |
commit | 6ca7232c409beeeea23c1ea98d9a6573815beaf9 (patch) | |
tree | cd2a0b29415b4964d875b39cfe5ef73296937166 | |
parent | 5326aadb5bdd8c0818d74cbf88ea8bad7d6da1af (diff) | |
download | bugzilla-6ca7232c409beeeea23c1ea98d9a6573815beaf9.tar.gz bugzilla-6ca7232c409beeeea23c1ea98d9a6573815beaf9.tar.xz |
fix @INC for bulk_index
-rwxr-xr-x | scripts/bulk_index.pl | 10 |
1 files changed, 10 insertions, 0 deletions
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 } |