use pygtk.require to determine database
svn: r1205
This commit is contained in:
@@ -27,6 +27,11 @@ import string
|
||||
# Check for the python imaging library
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
try:
|
||||
import pygtk; pygtk.require('2.0')
|
||||
except ImportError: # not set up for parallel install
|
||||
pass
|
||||
|
||||
try:
|
||||
import PIL.Image
|
||||
import StringIO
|
||||
@@ -34,10 +39,7 @@ try:
|
||||
no_pil = 0
|
||||
except:
|
||||
import popen2
|
||||
# import GDK
|
||||
# import GTK
|
||||
import gtk
|
||||
# import GdkImlib
|
||||
no_pil = 1
|
||||
|
||||
class ImgManip:
|
||||
|
||||
Reference in New Issue
Block a user