1
0
mirror of https://github.com/ciromattia/kcc synced 2026-02-14 08:11:01 +00:00

Fixed psutil detection

This commit is contained in:
Paweł Jastrzębski
2013-12-06 17:58:39 +01:00
parent 953942ca00
commit 0cf92fc48f

View File

@@ -23,8 +23,20 @@ import os
import zipfile
import rarfile
import locale
from sys import platform
from subprocess import STDOUT, PIPE
from psutil import Popen
try:
#noinspection PyUnresolvedReferences
from psutil import Popen
except ImportError:
print "ERROR: Psutil is not installed!"
if platform.startswith('linux'):
import Tkinter
import tkMessageBox
importRoot = Tkinter.Tk()
importRoot.withdraw()
tkMessageBox.showerror("KCC - Error", "Psutil is not installed!")
exit(1)
from shutil import move