From a795707afea57a4064eb99f4937a3e49381ae330 Mon Sep 17 00:00:00 2001 From: gryf Date: Thu, 30 Nov 2006 11:39:49 +0000 Subject: [PATCH] * Added checkings for PIL library. --- pyGTKtalog.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pyGTKtalog.py b/pyGTKtalog.py index 1cd15ed..ae97f83 100755 --- a/pyGTKtalog.py +++ b/pyGTKtalog.py @@ -49,9 +49,16 @@ if conf.confd['exportxls']: except: print "You'll need pyExcelerator, if you want to export DB to XLS format.\nhttp://sourceforge.net/projects/pyexcelerator" sys.exit(1) + +if conf.confd['pil']: + try: + import Image, ImageEnhance + except: + print "You'll need Python Imaging Library (PIL), if you want to make thumbnails" + sys.exit(1) # project modules -from mainWindow import PyGTKtalog +from mainwin import PyGTKtalog if __name__ == "__main__": app=PyGTKtalog()