관리-도구
편집 파일: environments.cpython-311.pyc
� %�4gl � �0 � d dl mZ d dl mZ d dl mZ d dlZd dlZd dlmZ d dlm Z d dl mZmZm Z dd lmZmZ dd lmZ dZej � ej � e� � d� � Zd ZdZ G d� de� � Zdd�Zdd�Zdd�Zdd�Z dS )� )�absolute_import)�print_function)�divisionN)� StrictVersion)� get_directory)� check_call�check_output� list_dirs� )�EXTENSION_PATTERN� ExtensionInfo)�Interpreter�rubyvenvzrubyvenv.py�#z /opt/cloudlinux/venv/bin/python3c �j � e Zd Zdd�Zd� Zd� Zdd�Zdd�Zdd�Zd� Z d � Z d � Zd� Zd� Z d � Zd� Zd� ZdS )�EnvironmentNc �\ � || _ |r|| _ n/t j t j � � � � j | _ |� t | _ n|| _ t j � t | j | j � � |� � | _ d | _ d | _ d|z | _ d S )N�ruby)�name�user�pwd�getpwuid�os�getuid�pw_name�DEFAULT_PREFIX�prefix�path�join�_abs_prefix�_interpreter�_gem�interpreter_name)�selfr r r s �Y/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/clselectruby/environments.py�__init__zEnvironment.__init__ s� � ��� �� :��D�I�I���R�Y�[�[�1�1�9�D�I��>�(�D�K�K� �D�K��G�L�L��T�Y���!D�!D�d�K�K�� � ����� � &�� ����� c �j � | j j �d| j j �d| j �d| j �d| j �d� S )N�.z(name='z ', user='z', prefix='z'))� __class__� __module__�__name__r r r �r$ s r% �__repr__zEnvironment.__repr__, s@ � ��N�%�%�%�t�~�'>�'>�'>��I�I�I�t�y�y�y�$�+�+�+�/� 0r'