summaryrefslogtreecommitdiffstats
path: root/app.psgi
diff options
context:
space:
mode:
authorDylan Hardison <dylan@mozilla.com>2016-02-23 22:23:20 +0100
committerDylan Hardison <dylan@mozilla.com>2016-02-23 22:23:20 +0100
commit2c33712dc066463ab9741a009e56d9a5c2ffedf6 (patch)
tree0be4c1368181648d715a35fd077324d3db0e4dc7 /app.psgi
parenta8adffb5ba7161a9ac491cca98d880577c1ab2fc (diff)
downloadbugzilla-2c33712dc066463ab9741a009e56d9a5c2ffedf6.tar.gz
bugzilla-2c33712dc066463ab9741a009e56d9a5c2ffedf6.tar.xz
Bug 1246528 - Use Makefile.PL and allow Bugzilla use cpanm-compatible local dependencies
r=dkl,a=dylan
Diffstat (limited to 'app.psgi')
-rw-r--r--app.psgi9
1 files changed, 7 insertions, 2 deletions
diff --git a/app.psgi b/app.psgi
index c04359fb1..c60d1e782 100644
--- a/app.psgi
+++ b/app.psgi
@@ -11,9 +11,14 @@ use strict;
use warnings;
use File::Basename;
-use lib dirname(__FILE__);
+use File::Spec;
+BEGIN {
+ require lib;
+ my $dir = dirname(__FILE__);
+ lib->import($dir, File::Spec->catdir($dir, "lib"), File::Spec->catdir($dir, qw(local lib perl5)));
+}
+
use Bugzilla::Constants ();
-use lib Bugzilla::Constants::bz_locations()->{ext_libpath};
use Plack;
use Plack::Builder;