run scorer regression test from any directory

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@4155 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
hieuhoang1972 2011-08-22 07:56:46 +00:00
parent 1873030d24
commit 3763b2466b

View File

@ -1,6 +1,15 @@
#!/usr/bin/perl -w
use strict;
BEGIN {
use Cwd qw/ abs_path /;
use File::Basename;
my $script_dir = dirname(abs_path($0));
print STDERR "script_dir=$script_dir\n";
push @INC, $script_dir;
}
use FindBin qw($Bin);
use MosesRegressionTesting;
use Getopt::Long;