[ocrfeeder] Fix Unpaper's configured path
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder] Fix Unpaper's configured path
- Date: Tue, 8 Feb 2011 15:33:30 +0000 (UTC)
commit 6b89768cd8d9c4039e0b55534d4e85b7172c8fe0
Author: Joaquim Rocha <jrocha igalia com>
Date: Tue Feb 8 16:31:05 2011 +0100
Fix Unpaper's configured path
When Unpaper was not installed, it would set None as its path which
would make the preferences dialog fail when OCRFeeder was run with
no existing configurations.
src/ocrfeeder/studio/configuration.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ocrfeeder/studio/configuration.py b/src/ocrfeeder/studio/configuration.py
index 551d98d..41ad748 100644
--- a/src/ocrfeeder/studio/configuration.py
+++ b/src/ocrfeeder/studio/configuration.py
@@ -286,7 +286,7 @@ class ConfigurationManager(object):
BOXES_STROKE: (94, 156, 235, 250),
IMAGE_FILL: (0, 183, 0, 150),
WINDOW_SIZE: 'auto',
- UNPAPER: getExecPath('unpaper'),
+ UNPAPER: getExecPath('unpaper') or '',
UNPAPER_USE_BLACK_FILTER: True,
UNPAPER_NOISE_FILTER_INTENSITY: 'auto',
UNPAPER_GRAY_FILTER_SIZE: 'auto',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]