[ocrfeeder] Import the Image module from PIL to avoid issues



commit 0b6d832761f99571ab69ba374108fc0278616fe8
Author: Joaquim Rocha <jrocha igalia com>
Date:   Fri Oct 28 19:16:59 2011 +0200

    Import the Image module from PIL to avoid issues

 bin/ocrfeeder-cli.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bin/ocrfeeder-cli.in b/bin/ocrfeeder-cli.in
index 51c6978..c08d848 100644
--- a/bin/ocrfeeder-cli.in
+++ b/bin/ocrfeeder-cli.in
@@ -29,7 +29,7 @@ installed_src = os.path.join('@prefix@', 'lib', 'python PYTHON_VERSION@',
 if os.path.exists(installed_src):
     sys.path.insert(1, installed_src)
 
-import Image
+from PIL import Image
 from ocrfeeder.util.constants import OCRFEEDER_STUDIO_VERSION
 from ocrfeeder.util.graphics import getImageResolution
 from ocrfeeder.util.configuration import ConfigurationManager



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