aboutsummaryrefslogtreecommitdiffstats
path: root/setenv.pl
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-03-12 18:36:58 +0000
committerEdmund von der Burg <evdb@mysociety.org>2011-03-12 18:36:58 +0000
commitd935d9c0ece488531e9f73d45207f286fd9dd890 (patch)
tree899d9a37241b82a8efb9e9d9e30fdcb33a65e849 /setenv.pl
parent7a849e92e033bfd03f4a75a57dd657da2c772177 (diff)
bug fixes
Diffstat (limited to 'setenv.pl')
-rwxr-xr-xsetenv.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/setenv.pl b/setenv.pl
index ffa45c9d4..1db2666d8 100755
--- a/setenv.pl
+++ b/setenv.pl
@@ -16,8 +16,9 @@ use local::lib "$FindBin::Bin/perl-external";
use local::lib "$FindBin::Bin/perl-external/local-lib";
# add the local perllibs too
-use lib "$FindBin::Bin/commonlib/perllib";
-use lib "$FindBin::Bin/perllib";
+for ( "$FindBin::Bin/commonlib/perllib", "$FindBin::Bin/perllib" ) {
+ $ENV{PERL5LIB} = "$_:$ENV{PERL5LIB}";
+}
# also set the path to our scripts etc
$ENV{PATH} = join ':', uniq "$FindBin::Bin/bin", split( m/:/, $ENV{PATH} );