Hacked By AnonymousFox
�
!�g D � �" � d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlZd dlZd dl Z d dl
m
Z
d dlmZ d dl
mZmZmZmZ dd lmZmZ dd
lmZmZ d dlZd dlmZ d dlmZ d
ZdZdZdZdZ dZ!dZ" G d� de#� � Z$dd�Z%dd�Z&dd�Z'dd�Z(dS )� )�print_function)�absolute_import)�divisionN)�datetime)�
get_directory)�
check_call�check_output� list_dirs�run_command� )�EXTENSION_PATTERN�
ExtensionInfo)�Interpreter�interpreters)�JSONDecodeError)�ClSelectExcept�
virtualenvz.virtualenv.backupz#/opt/cloudlinux/venv/bin/virtualenv�#z/usr/share/l.v.e-manager/utils�python_wrapperzset_env_vars.pyc � � e Zd Zdd�Zd� Zd� Zdd�Zdd�Zdd�Zd � Z d d�Z
dd�Zd
� Zd� Z
d� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zdd�Zdd�Zd!d�Zdd�Zd� ZdS )"�EnvironmentNc � � || _ |r|| _ n/t j t j � � � � j | _ t j | j � � j | _ t j
� | j d� � | _ |�
t | _ n|| _ t j
� t | j | j � � |� � | _
t j
� t | j t � � | j � � | _ d | _ d | _ d | _ d|z | _ ddi| _ d S )Nz.pip/pip.log�python�MySQLdbzMySQL-python)�name�user�pwd�getpwuid�os�getuid�pw_name�getpwnam�pw_dir�homepath�path�join�pip_logfile�DEFAULT_PREFIX�prefix�_abs_prefix�
BACKUP_PREFIX�backup_path�
_requirements�_interpreter�_pip�interpreter_name�_extension_remap)�selfr r r) s �_/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/clselectpythonuser/environments.py�__init__zEnvironment.__init__&