aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-06-17 08:55:10 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-06-20 15:02:12 +0100
commit6c4f3f78bfada011441411f308967298984e7ba5 (patch)
tree34a76d728a118a6b2356e375b5aa01e0b843defb /bin
parentd62382b01f99ab8bac08b01a2609f6fb77a298f5 (diff)
[fixmystreet.com] Fix relative paths in fixture.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fixmystreet.com/fixture6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/fixmystreet.com/fixture b/bin/fixmystreet.com/fixture
index b26aa029c..9bb9435c5 100755
--- a/bin/fixmystreet.com/fixture
+++ b/bin/fixmystreet.com/fixture
@@ -15,11 +15,11 @@ BEGIN {
require "$d/../../setenv.pl";
}
+use FixMyStreet;
use FixMyStreet::Cobrand;
use FixMyStreet::DB::Factories;
use DateTime::Format::Pg;
use Getopt::Long::Descriptive;
-use Path::Tiny 'path';
my ($opt, $usage) = describe_options(
'%c %o',
@@ -53,8 +53,8 @@ BEGIN
END
$func$;
}) or die $!;
- $db->dbh->do( path('db/alert_types.sql')->slurp ) or die $!;
- $db->dbh->do( path('db/generate_secret.sql')->slurp ) or die $!;
+ $db->dbh->do( scalar FixMyStreet->path_to('db/alert_types.sql')->slurp ) or die $!;
+ $db->dbh->do( scalar FixMyStreet->path_to('db/generate_secret.sql')->slurp ) or die $!;
say "Emptied database";
}