diff options
author | Paweł Jastrzębski <pawelj@vulturis.eu> | 2014-04-30 20:38:23 +0200 |
---|---|---|
committer | Paweł Jastrzębski <pawelj@vulturis.eu> | 2014-04-30 20:38:23 +0200 |
commit | df5ee1badf68c1d9f65454d01eebc8002ba5d8d6 (patch) | |
tree | 944685b9ef63b69adfa30fb9075da7a78f427956 /kcc-c2p.py | |
parent | Re-enabled tray icon on Linux (diff) | |
download | kcc-df5ee1badf68c1d9f65454d01eebc8002ba5d8d6.tar.gz kcc-df5ee1badf68c1d9f65454d01eebc8002ba5d8d6.tar.bz2 kcc-df5ee1badf68c1d9f65454d01eebc8002ba5d8d6.zip |
Overhauled dependency check
Diffstat (limited to 'kcc-c2p.py')
-rwxr-xr-x | kcc-c2p.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kcc-c2p.py b/kcc-c2p.py index 482db23..853332e 100755 --- a/kcc-c2p.py +++ b/kcc-c2p.py @@ -28,12 +28,12 @@ if sys.version_info[0] != 3: print('ERROR: This is Python 3 script!') exit(1) -# Dependiences check +# Dependency check missing = [] try: # noinspection PyUnresolvedReferences - from PIL import Image, ImageOps, ImageStat, ImageChops - if tuple(map(int, ('2.3.0'.split(".")))) > tuple(map(int, (Image.PILLOW_VERSION.split(".")))): + import PIL + if tuple(map(int, ('2.3.0'.split(".")))) > tuple(map(int, (PIL.PILLOW_VERSION.split(".")))): missing.append('Pillow 2.3.0+') except ImportError: missing.append('Pillow 2.3.0+') |