관리-도구
편집 파일: environments.cpython-37.pyc
B �v6dD � @ s 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 dd� de#�Z$ddd�Z%ddd�Z&d dd�Z'd!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/alt/python37/bin/virtualenv�#z/usr/share/l.v.e-manager/utilsZpython_wrapperzset_env_vars.pyc @ s� e Zd Zd4dd�Zdd� Zdd� Zd5dd �Zd6dd�Zd7d d�Zdd� Z d8dd�Z d9dd�Zdd� Zdd� Z dd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd:d*d+�Zd;d,d-�Zd<d.d/�Zd=d0d1�Zd2d3� ZdS )>�EnvironmentNc C s� || _ |r|| _nt�t�� �j| _t�| j�j| _ tj �| j d�| _|d krVt | _n|| _tj �t| j| j�|�| _ tj �t| jt�| j �| _d | _d | _d | _d| | _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_PREFIXZbackup_pathZ _requirements�_interpreter�_pip�interpreter_name�_extension_remap)�selfr r r% � r- �Y/opt/alt/python37/lib/python3.7/site-packages/clselect/clselectpythonuser/environments.py�__init__&