[ocrfeeder/introspection] Fix getting engine name in ocrfeeder-cli
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder/introspection] Fix getting engine name in ocrfeeder-cli
- Date: Mon, 7 Jul 2014 21:13:54 +0000 (UTC)
commit a7c7af813e27276a8cd62e80fde255feca6616ff
Author: Joaquim Rocha <me joaquimrocha com>
Date: Mon Jul 7 22:16:09 2014 +0200
Fix getting engine name in ocrfeeder-cli
bin/ocrfeeder-cli.in | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/bin/ocrfeeder-cli.in b/bin/ocrfeeder-cli.in
index 6633694..bdb8ad2 100644
--- a/bin/ocrfeeder-cli.in
+++ b/bin/ocrfeeder-cli.in
@@ -109,8 +109,9 @@ if not len(ocr_engines):
parser.error('No OCR engines configured.')
exit(0)
-engine_name = options.engine.lower()
+engine_name = options.engine
if engine_name:
+ engine_name = engine_name.lower()
for engine in ocr_engines:
if engine[0].name.lower() == engine_name:
ocr_engine = engine[0]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]