Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Upload File : |
o ���b � @ sz d dl mZmZmZmZmZ d dlmZ d dlZd dl Z d dl Z G dd� de�ZG dd� deee�ZG dd � d ee�Z dS ) � )�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugin� PluginOpt)� RHELPolicyNc @ s, e Zd ZdZdZdZdZdZdZdd� Z d S ) �PythonznCaptures information on the installed python runtime(s), as well as python modules installed via pip. zPython runtime�python)�system)r z python -Vc C sV | j | jdd� | �d�}|d dkr'|d �� dd � D ]}| � d| � qd S d S ) Nzpython-version)�suggest_filenamezwhereis pip -b�statusr �output� z%s list installed)�add_cmd_output�python_version�exec_cmd�split)�self�pips�pip� r �;/usr/lib/python3/dist-packages/sos/report/plugins/python.py�setup! s � �zPython.setupN) �__name__� __module__�__qualname__�__doc__� short_desc�plugin_name�profiles�packagesr r r r r r r s r c @ s e Zd ZdZdZdS )�UbuntuPython� python3 -V)�python3N)r r r r r r r r r r! . s r! c s4 e Zd ZdZdZedddd�gZ� fdd�Z� ZS ) �RedHatPythona In addition to the base information, on Red Hat family distributions the python plugin also supports the 'hashes' option. If enabled, this plugin will generate a json-formatted listing of all pyfiles within the distribution-standard python package installation locations. )r �python36�python2r# zplatform-python�hashesFz#collect hashes for all python files)�default�descc sR | � ddg� t| jt�r| j�� dkrd| _tt| ��� | � d�r�dg i}g d�}|D ]l}t �| �|��D ]a\}}}|D ]Y}| �||�}|� d�r�z;t|d ��,} t�� } d } | �|�}|rf| �|� nnqY| �� } |d �|| d�� W d � n1 s�w Y W q> ty� | �d | � Y q>w q>q7q-| jt�|�ddd� d S d S )Nz python2 -Vr"