[ocrfeeder] Fix Unpaper issue due to an unexisting variable gb#668027



commit aaeb22f8a003243f8916be7f4f5eee18d129b9a0
Author: Joaquim Rocha <jrocha igalia com>
Date:   Mon Mar 5 22:57:23 2012 +0100

    Fix Unpaper issue due to an unexisting variable gb#668027
    
    There was a temporary_dir varibale that was left unchanged
    when the configuration started using TEMPORARY_FOLDER.
    Thanks to Buganini Q for reporting and posting the fix.

 src/ocrfeeder/util/lib.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ocrfeeder/util/lib.py b/src/ocrfeeder/util/lib.py
index 15eeb68..5d6780f 100644
--- a/src/ocrfeeder/util/lib.py
+++ b/src/ocrfeeder/util/lib.py
@@ -130,7 +130,7 @@ def getUnpaperCommand(configuration_manager):
     return command
 
 def unpaperImage(configuration_manager, image_path):
-    tmp_dir = configuration_manager.temporary_dir
+    tmp_dir = configuration_manager.TEMPORARY_FOLDER
     prefix = os.path.splitext(image_path)[0]
     unpapered_name = os.path.join(tmp_dir, os.path.basename(prefix) + '.ppm')
     if os.path.exists(unpapered_name):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]