mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 01:36:27 +00:00
Various multi-os tweaks
This commit is contained in:
16
kcc-c2p.py
16
kcc-c2p.py
@@ -33,12 +33,16 @@ try:
|
||||
except ImportError:
|
||||
missing.append('Pillow 2.3.0+')
|
||||
if len(missing) > 0:
|
||||
print('ERROR: ' + ', '.join(missing) + ' is not installed!')
|
||||
import tkinter
|
||||
import tkinter.messagebox
|
||||
importRoot = tkinter.Tk()
|
||||
importRoot.withdraw()
|
||||
tkinter.messagebox.showerror('KCC - Error', 'ERROR: ' + ', '.join(missing) + ' is not installed!')
|
||||
try:
|
||||
# noinspection PyUnresolvedReferences
|
||||
import tkinter
|
||||
# noinspection PyUnresolvedReferences
|
||||
import tkinter.messagebox
|
||||
importRoot = tkinter.Tk()
|
||||
importRoot.withdraw()
|
||||
tkinter.messagebox.showerror('KCC - Error', 'ERROR: ' + ', '.join(missing) + ' is not installed!')
|
||||
except ImportError:
|
||||
print('ERROR: ' + ', '.join(missing) + ' is not installed!')
|
||||
exit(1)
|
||||
|
||||
import sys
|
||||
|
||||
Reference in New Issue
Block a user