1
0
mirror of https://github.com/gryf/pygtktalog.git synced 2025-12-17 19:40:21 +01:00

* Added checkings for PIL library.

This commit is contained in:
2006-11-30 11:39:49 +00:00
parent fa7217d7bc
commit a795707afe

View File

@@ -50,8 +50,15 @@ if conf.confd['exportxls']:
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()