aboutsummaryrefslogtreecommitdiffstats
path: root/bin/update-all-reports
diff options
context:
space:
mode:
Diffstat (limited to 'bin/update-all-reports')
-rwxr-xr-xbin/update-all-reports7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/update-all-reports b/bin/update-all-reports
index f4d6113cb..f6cd34210 100755
--- a/bin/update-all-reports
+++ b/bin/update-all-reports
@@ -10,6 +10,13 @@ use strict;
use warnings;
require 5.8.0;
+BEGIN {
+ use File::Basename qw(dirname);
+ use File::Spec;
+ my $d = dirname(File::Spec->rel2abs($0));
+ require "$d/../setenv.pl";
+}
+
use FixMyStreet::App;
use File::Path ();
use File::Slurp;