mirror of
https://github.com/ciromattia/kcc
synced 2026-09-24 03:37:08 +00:00
Fixed psutil detection
This commit is contained in:
+13
-1
@@ -23,8 +23,20 @@ import os
|
|||||||
import zipfile
|
import zipfile
|
||||||
import rarfile
|
import rarfile
|
||||||
import locale
|
import locale
|
||||||
|
from sys import platform
|
||||||
from subprocess import STDOUT, PIPE
|
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
|
from shutil import move
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user