From 9891e2aeab5f6e2f5893a4182a1166e38ab81fb5 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 17 Mar 2012 14:29:52 +0100 Subject: [PATCH] Make the base directory configurable. --- train.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.pl b/train.pl index e55f37c..95dcd06 100755 --- a/train.pl +++ b/train.pl @@ -57,7 +57,7 @@ close DATA; $dbh->do('DELETE FROM ratings'); my $iq = $dbh->prepare('INSERT INTO ratings ( id, rating ) VALUES (?, ?)'); -open RATINGS, "/home/sesse/dev/bayeswf/bayeswf < $tmpnam |" +open RATINGS, "$config::base_dir/bayeswf < $tmpnam |" or die "bayeswf: $!"; while () { /(.*) (.*)/ or next; -- 2.39.2