Comment 1 for bug 382977

Revision history for this message
Stani (stani) wrote :

$ bzr diff
=== modified file 'phatch/core/config.py'
--- phatch/core/config.py 2009-06-03 02:51:15 +0000
+++ phatch/core/config.py 2009-06-03 10:58:59 +0000
@@ -132,8 +132,12 @@
     #only when the gui is involved
     pyWxLib = os.path.join(phatch_path,'pyWx','lib')
     if os.path.isdir(pyWxLib): fix_python_path(pyWxLib)
- #other people module (patches for pil)
+ #other people module
     fix_python_path(os.path.join(phatch_path,'other'))
+ #patches for pil < 1.1.6
+ import Image
+ if Image.VERSION < '1.1.6':
+ fix_python_path(os.path.join(phatch_path,'other','pil-1.1.6'))
     #user actions
     fix_python_path(USER_ACTIONS_PATH)
     #load locale

=== added directory 'phatch/other/pil-1.1.6'
=== renamed file 'phatch/other/JpegImagePlugin.py' => 'phatch/other/pil-1.1.6/JpegImagePlugin.py'
=== renamed file 'phatch/other/TiffImagePlugin.py' => 'phatch/other/pil-1.1.6/TiffImagePlugin.py'

$ bzr commit -m "no patches for pil 1.1.7"
Committing to: /home/stani/sync/python/phatch/trunk/
modified phatch/core/config.py
added phatch/other/pil-1.1.6
renamed phatch/other/JpegImagePlugin.py => phatch/other/pil-1.1.6/JpegImagePlugin.py
renamed phatch/other/TiffImagePlugin.py => phatch/other/pil-1.1.6/TiffImagePlugin.py
Committed revision 627.