????
Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/clwpos/php/__pycache__/ |
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/clwpos/php/__pycache__/alt_php.cpython-311.pyc |
� tfj � �d � d dl mZ d dlZd dlZd dlmZmZ d dlmZ d de fd�Z dee fd�ZdS ) � )�absolute_importN)�List�Type)�PHP�alt_php_identifierc �N � |�d| � dd� � � d�}n|}|r|nt } || | d � d| d � �t j � |d� � |t j � |d� � t j � |d � � � � � S )Nz/opt/�-�/����.���zusr/lib64/php/modules/zusr/bin/phpzlink/conf/default.ini)� identifier�version�modules_dir�dir�bin�ini)�replacer �os�path�join)r � root_path�base_cls�php_root_dirs �I/opt/cloudlinux/venv/lib64/python3.11/site-packages/clwpos/php/alt_php.py�create_generic_phpr s� � ���F�1�9�9�#�s�C�C�F�F�F��� ��#�,�x�x��H��8�%�%�b�)�D�D�,>�r�,B�D�D��G�L�L��/G�H�H���G�L�L��}�5�5��G�L�L��'>�?�?� � � � � �returnc �t �� d} t j d� � ��fd�t j | � � D � � }|S )z1 Get list of installed alt-php versions. z/opt/altz ^php\d{2}$c �^ �� g | ])}�� |� � �t d |� �� � ��*S )zalt-)�matchr )�.0�dirname�patterns �r � <listcomp>z(get_alt_php_versions.<locals>.<listcomp>"