minor fix
This commit is contained in:
parent
97db1d1b62
commit
08a20c74d0
9
nohang
9
nohang
@ -13,12 +13,6 @@ from sys import stdout
|
|||||||
sig_dict = {signal.SIGKILL: 'SIGKILL',
|
sig_dict = {signal.SIGKILL: 'SIGKILL',
|
||||||
signal.SIGTERM: 'SIGTERM'}
|
signal.SIGTERM: 'SIGTERM'}
|
||||||
|
|
||||||
|
|
||||||
# спрятать в туда, где включены уведомления
|
|
||||||
notify_sig_dict = {signal.SIGKILL: 'Killing',
|
|
||||||
signal.SIGTERM: 'Terminating'}
|
|
||||||
|
|
||||||
|
|
||||||
# directory where the script is running
|
# directory where the script is running
|
||||||
cd = os.getcwd()
|
cd = os.getcwd()
|
||||||
|
|
||||||
@ -1258,6 +1252,9 @@ mem_len = len(str(round(mem_total / 1024.0)))
|
|||||||
|
|
||||||
if gui_notifications or gui_low_memory_warnings:
|
if gui_notifications or gui_low_memory_warnings:
|
||||||
from subprocess import Popen, PIPE
|
from subprocess import Popen, PIPE
|
||||||
|
notify_sig_dict = {signal.SIGKILL: 'Killing',
|
||||||
|
signal.SIGTERM: 'Terminating'}
|
||||||
|
|
||||||
|
|
||||||
if regex_matching:
|
if regex_matching:
|
||||||
from re import fullmatch
|
from re import fullmatch
|
||||||
|
Loading…
Reference in New Issue
Block a user