Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/analysis/show-phrases-used.pl')
-rw-r--r--scripts/analysis/show-phrases-used.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/analysis/show-phrases-used.pl b/scripts/analysis/show-phrases-used.pl
index a3774d784..32885e752 100644
--- a/scripts/analysis/show-phrases-used.pl
+++ b/scripts/analysis/show-phrases-used.pl
@@ -7,7 +7,9 @@
use strict;
BEGIN
{
- my $wd = `pawd`; chop $wd;
+ my $wd= `pawd 2>/dev/null`;
+ if (!$wd) {$wd = `pwd`;}
+ chomp $wd;
push @INC, "$wd/perllib/sun4-solaris"; #for GD; if not an absolute path, Polygon.pm throws a fit
}
use lib "perllib/sun4-solaris/auto/GD";