From: Steinar H. Gunderson Date: Sat, 17 Mar 2012 13:29:52 +0000 (+0100) Subject: Make the base directory configurable. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=9891e2aeab5f6e2f5893a4182a1166e38ab81fb5;p=wloh Make the base directory configurable. --- 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;