summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2017-04-27 02:25:37 +0200
committerDylan William Hardison <dylan@hardison.net>2017-04-28 02:23:09 +0200
commit6ca7232c409beeeea23c1ea98d9a6573815beaf9 (patch)
treecd2a0b29415b4964d875b39cfe5ef73296937166
parent5326aadb5bdd8c0818d74cbf88ea8bad7d6da1af (diff)
downloadbugzilla-6ca7232c409beeeea23c1ea98d9a6573815beaf9.tar.gz
bugzilla-6ca7232c409beeeea23c1ea98d9a6573815beaf9.tar.xz
fix @INC for bulk_index
-rwxr-xr-xscripts/bulk_index.pl10
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 }