[ocrfeeder] Fixed getting the engine name (gc#10)



commit 928ebf2978f1258b4c03ade8aa3f4b1d7f8f8525
Author: Joaquim Rocha <jrocha igalia com>
Date:   Wed Mar 3 14:57:18 2010 +0100

    Fixed getting the engine name (gc#10)

 feeder/ocrEngines.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/feeder/ocrEngines.py b/feeder/ocrEngines.py
index a4afbbb..e59c95b 100644
--- a/feeder/ocrEngines.py
+++ b/feeder/ocrEngines.py
@@ -179,7 +179,7 @@ class OcrEnginesManager:
     
     def engineToXml(self, engine, path = None):
         if not path:
-            path = os.path.join(self.configuration_manager.user_engines_folder, engine_info['name'] + '.xml')
+            path = os.path.join(self.configuration_manager.user_engines_folder, engine.name + '.xml')
             path = lib.getNonExistingFileName(path)
         engine_content = engine.saveToXml(path)
         return path



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