16 lines
698 B
Diff
16 lines
698 B
Diff
--- mcomix/run.py.orig 2023-07-03 21:39:35.146479272 +0300
|
|
+++ mcomix/run.py 2023-07-03 21:40:16.742507561 +0300
|
|
@@ -122,7 +122,11 @@
|
|
try:
|
|
import PIL.Image
|
|
|
|
- if PIL.__version__ < '6.0.0':
|
|
+ try:
|
|
+ pil_major_version = int(PIL.__version__[0:PIL.__version__.index('.')])
|
|
+ except (ValueError, IndexError):
|
|
+ pil_major_version = 0
|
|
+ if pil_major_version < 6:
|
|
log.error( _("You don't have the required version of the Python Imaging Library Fork (Pillow) installed."))
|
|
log.error( _('Installed Pillow version is: %s') % PIL.__version__ )
|
|
log.error( _('Required Pillow version is: 6.0.0 or higher') )
|