summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 }