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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user