phatch-dev team mailing list archive
-
phatch-dev team
-
Mailing list archive
-
Message #00046
[Bug 382977] Re: Phatch should not provide patches for PIL 1.1.7
$ 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.
** Changed in: phatch
Status: Confirmed => Fix Committed
--
Phatch should not provide patches for PIL 1.1.7
https://bugs.launchpad.net/bugs/382977
You received this bug notification because you are a member of Phatch
Developers, which is subscribed to Phatch.
Status in Phatch = Photo & Batch!: Fix Committed
Bug description:
Phatch now provide patched modules for PIL for jpeg and tiff. Phatch should only add these modules to sys.path if the PIL version is lower than 1.1.7
References