/usr/lib/python3.9/site-packages/glances/__pycache__
a ���c' � @ sd d Z ddlZddlZddlZddlmZmZ ddlmZ ddl m Z ddlmZ G dd� de �ZdS ) zManage the AMPs list.� N)�listkeys� iteritems)�logger)� amps_path)�glances_processesc @ sl e Zd ZdZi Zdd� Zdd� Zdd� Zdd � Zd d� Z dd � Z dd� Zdd� Zdd� Z dd� Zdd� ZdS )�AmpsLista This class describes the optional application monitoring process list. The AMP list is a list of processes with a specific monitoring action. The list (Python list) is composed of items (Python dict). An item is defined (dict keys): *... c C s || _ || _| �� dS )zInit the AMPs list.N)�args�config�load_configs)�selfr r � r �5/usr/lib/python3.9/site-packages/glances/amps_list.py�__init__$ s zAmpsList.__init__c C sT | j du rdS d| j �� v r&t�d� d}| j �� D �]}|�d�r4|dd� }tj�t||dd� d �}tj� |�s�tj�td �}zt tj�|�dd � �}W nl ty� } zt�d� ||�� W Y d}~q4d}~0 t�y } zt�d� ||�� W Y d}~q4d}~0 0 |j|| jd �| j|<