관리-도구
편집 파일: clselectctlnodejsuser.cpython-311.pyc
� %�4g�R � � � d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlmc m c m Z d dlZd dl mZ d dlmZ d dlmZ dd lmZ dd lmZ ddlmZ d dlmZ d d lmZ ddlmZ ddlmZ ddlm Z m!Z! ddl"m#Z#m$Z$ ddl%m&Z& dZ'e#Z(d&d�Z)d'd�Z*d� Z+d� Z,d'd�Z- d(d�Z.d� Z/d'd�Z0d'd�Z1d'd�Z2d'd�Z3d'd �Z4d)d!�Z5d*d#�Z6d$� Z7d%� Z8dS )+� )�print_function)�absolute_import)�divisionN)�ConnectionError)� iteritems)� basestring� )�clpassenger)�clselectctl)�utils)�userdomains)�mod_makedirs)�ClSelectExcept)�ApplicationsManager)�environments�interpreters)�APP_STARTED_CONST�APP_STOPPED_CONST)�clprintzapp.jsFc �2 � t | |� � }|s|}t j || |� � }|� � � r|rV t j d�� � | }n"# t $ r t j |� � �w xY w|� ||�� � |S )N�version)�key)� destroy_first) �_get_prefixr �Environment�existsr �KeyErrorr �NoSuchAlternativeVersion�create)�user� directoryr �env_namer �prefix�environment�interpreters �U/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/clselectctlnodejsuser.py�_create_environmentr'