mirror of
https://github.com/ciromattia/kcc
synced 2025-12-21 13:41:44 +00:00
More user-friendly import errors
This commit is contained in:
7
kcc.py
7
kcc.py
@@ -24,7 +24,12 @@ __docformat__ = 'restructuredtext en'
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
from PyQt4 import QtGui
|
try:
|
||||||
|
# noinspection PyUnresolvedReferences
|
||||||
|
from PyQt4 import QtGui
|
||||||
|
except ImportError:
|
||||||
|
print "ERROR: PyQT4 is not installed!"
|
||||||
|
exit(1)
|
||||||
from kcc import KCC_gui
|
from kcc import KCC_gui
|
||||||
from multiprocessing import freeze_support
|
from multiprocessing import freeze_support
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,12 @@ __copyright__ = '2012-2013, Ciro Mattia Gonano <ciromattia@gmail.com>, Pawel Jas
|
|||||||
__docformat__ = 'restructuredtext en'
|
__docformat__ = 'restructuredtext en'
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from PIL import Image, ImageOps, ImageStat, ImageChops
|
try:
|
||||||
|
# noinspection PyUnresolvedReferences
|
||||||
|
from PIL import Image, ImageOps, ImageStat, ImageChops
|
||||||
|
except ImportError:
|
||||||
|
print "ERROR: Pillow is not installed!"
|
||||||
|
exit(1)
|
||||||
|
|
||||||
|
|
||||||
class ImageFlags:
|
class ImageFlags:
|
||||||
|
|||||||
Reference in New Issue
Block a user