관리-도구
편집 파일: __init__.cpython-311.pyc
� %�4gj � � � d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlZd dlm Z m Z mZ dZdZ dZ G d � d e� � Z G d� de� � Zd � Zd� Zd� ZdZdS )� )�print_function)�division)�absolute_importN)�check_output�CalledProcessError�STDOUTz"/usr/share/l.v.e-manager/cl.pythonz alt-pythonz/opt/alt/pythonc � � e Zd ZdZdS )�PythonErrorz9Top level error class for admin's part of Python selectorN��__name__� __module__�__qualname__�__doc__� � �W/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/clselectpython/__init__.pyr r s � � � � � �C�C��Dr r c � � e Zd ZdZdS )�PythonConfigErrorz$Generic error class for PythonConfigNr r r r r r s � � � � � �.�.��Dr r c � � t j t � � d S # t $ r!} | j t j k r� Y d } ~ d S d } ~ ww xY w)N)�os�makedirs� CONFIG_DIR�OSError�errno�EEXIST)�es r �create_config_dirsr ! sb � �� ��J�������� � � ��7�e�l�"�"�� #�"�"�"�"�"��������s � � A�A�Ac �b � t | t � � sdS t j d| � � sdS dS )z>Return True if specified MAJOR version is valid for processingFz ^\d+\.\d+$T)� isinstance�str�re�match)�vers r �is_major_versionr$ ) s7 � ��c�3��� ��u� �8�M�3�'�'� ��u��4r c �0 � i } t j d� t � � � � D ]�}d� t t j |� d� � d � � � � }|d � d|dd� � �}d � ||� � }t j � |� � s�� t |d gdt �� � }n# t $ r Y ��w xY w|dk r"|� � � d }||d �| |<