관리-도구
편집 파일: environments.cpython-37.pyc
B �v6d� � @ s� d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlmZ d dl m Z mZmZ ddl mZ d Zej�ej�e�d �ZdZdZG d d� de�Zddd�Zddd�Zddd�Zddd�ZdS )� )�print_function)�division)�absolute_importN)� iteritems)� check_call� list_dirs�run_command_full� )�Interpreter�nodevenvznodevenv.pyz/opt/alt/python37/bin/python3zpackage.jsonc @ s� e Zd Zd"dd�Zdd� Zdd� Zd#dd �Zd$d d�Zd%d d�Zdd� Z dd� Z dd� Zdd� Zd&dd�Z dd� Zdd� Zdd� Zd d!� ZdS )'�EnvironmentNc C sn || _ |r|| _nt�t�� �j| _|d kr4t| _n|| _tj � t| j| j�|�| _ d | _d | _ d| | _d S )N�node)�name�user�pwd�getpwuid�os�getuid�pw_name�DEFAULT_PREFIX�prefix�path�join�_abs_prefix�_interpreter�_npmZinterpreter_name)�selfr r r � r �Y/opt/alt/python37/lib/python3.7/site-packages/clselect/clselectnodejsuser/environments.py�__init__ s zEnvironment.__init__c C s d| j j| j j| j| j| jf S )Nz(%s.%s(name='%s', user='%s', prefix='%s'))� __class__� __module__�__name__r r r )r r r r �__repr__+ s zEnvironment.__repr__c s t �� j��� �fdd�}|S )Nc s4 t ��j� t ��j� � jt jd<