patch-FuzzyOcr_Scanset_pm 737 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-FuzzyOcr_Scanset_pm,v 1.1 2012/07/09 21:04:03 giovanni Exp $
  2. --- FuzzyOcr/Scanset.pm.orig Mon Jul 9 19:12:47 2012
  3. +++ FuzzyOcr/Scanset.pm Mon Jul 9 19:13:54 2012
  4. @@ -20,6 +20,8 @@ package FuzzyOcr::Scanset;
  5. use lib qw(..);
  6. use FuzzyOcr::Logging qw(errorlog);
  7. +use File::Basename qw(dirname);
  8. +
  9. sub new {
  10. my ($class, $label, $preprocessors, $command, $args, $output_in) = @_;
  11. @@ -36,7 +38,7 @@ sub new {
  12. sub run {
  13. my ($self, $input) = @_;
  14. my $conf = FuzzyOcr::Config::get_config();
  15. - my $tmpdir = FuzzyOcr::Config::get_tmpdir();
  16. + my $tmpdir = dirname($input);
  17. my $label = $self->{label};
  18. my $output = "$tmpdir/scanset.$label.out";
  19. my $stderr = ">$tmpdir/scanset.$label.err";