parscit/bin/tr2crfpp.pl in biblicit-2.2.1 vs parscit/bin/tr2crfpp.pl in biblicit-2.2.2
- old
+ new
@@ -27,10 +27,11 @@
### USER customizable section
my $tmpfile .= $0; $tmpfile =~ s/[\.\/]//g;
$tmpfile .= $$ . time;
if ($tmpfile =~ /^([-\@\w.]+)$/) { $tmpfile = $1; } # untaint tmpfile variable
-$tmpfile = "/tmp/" . $tmpfile;
+my $tmpdir = $ENV{'PARSCIT_TMPDIR'} || "/tmp";
+$tmpfile = "$tmpdir/$tmpfile";
$0 =~ /([^\/]+)$/; my $progname = $1;
my $outputVersion = "1.0";
my $dictFile = "$FindBin::Bin/../resources/parsCitDict.txt";
### END user customizable section