관리-도구
편집 파일: clselectctlpython.cpython-37.pyc
B �v6dy� � @ sT d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlZd dlZd dl Z d dl Z d dlZd dlZd dl Z d dlZd dlm m mZ d dlmZ d dlmZ ddlmZ dd lmZ dd lmZ d dlZd dlmZm Z m!Z!m"Z" d dl#m$Z$m%Z% d d l&m'Z' ddl(m)Z)m*Z*m+Z+ ddl,m-Z-m.Z. ddl/m0Z0 ddl1m2Z2m3Z3m4Z4 ddl5m6Z6m7Z7 dZ8dZ9dZ:dZ;dZ<e�=d�Z>dd� Z?dKdd�Z@dLdd�ZAdMd d!�ZBd"d#� ZCdNd$d%�ZDdOd&d'�ZEdPd(d)�ZFd*d+� ZGdQd-d.�ZHd/d0� ZIdRd1d2�ZJdSd3d4�ZKdTd5d6�ZLdUd7d8�ZMd9d:� ZNd;d<� ZOd=d>� ZPd?d@� ZQdAdB� ZRdCdD� ZSdVdFdG�ZTdWdIdJ�ZUdS )X� )�print_function)�absolute_import)�divisionN)�ConnectionError)� iteritems� )�clpassenger)�clselectctl)�utils)�userdomains�docroot�cpusers�CP_NAME)�NoDomain�NotSupported)�mod_makedirs)�ApplicationsManager�PythonAppFormatVersion�get_venv_rel_path)�ClSelectExcept�BaseClSelectException)�clprint)� extensions�environments�interpreters)�APP_STARTED_CONST�APP_STOPPED_CONSTzpassenger_wsgi.py�startedZapplicationz�import imp import os import sys sys.path.insert(0, os.path.dirname(__file__)) wsgi = imp.load_source('wsgi', '%s') application = wsgi.%s aH import os import sys sys.path.insert(0, os.path.dirname(__file__)) def %s(environ, start_response): start_response('200 OK', [('Content-Type', 'text/plain')]) message = 'It works!\n' version = 'Python v' + sys.version.split()[0] + '\n' response = '\n'.join([message, version]) return [response.encode()] zJimp\.load_source\(.+, '(?P<script>.+)'\)\s+application.+\.(?P<callable>.+)c C s� t d� t d� t d� t d� t d� t d� t d� t d� t d � t d � t d� t d� t d � t d� t d� t d� t d� t d� t d� t d� t d� t d� t d� t d� t d� t d� t d� t d� t d� t d� t d� d S )Nz�Warning: selectorctl utility for --interpreter python is deprecated. Only update-interpreter option is still possible to use. Please, use cloudlinux-selector utility to manage your python applicationszF -v | --version VERSION : Specify alternative versionz3 -u | --user USERNAME : Usernamez^ --domain DOMAIN : Domain (or subdomain); users main domain as defaultzL -l | --list : List alternatives for interpreterzF -G | --list-extensions : List global set of packageszG -K | --list-extensions-version : List version set of packageszG -s | --user-summary : List user summary of webappsz= -y | --create-webapp : Create user webappzi | --update-interpreter : Update binary python in virtual environment; you can use with zj --user=* for all users; application name as default * (all app)z> -n | --destroy-webapp : Destroy user webappza -f | --relocate-webapp : Change webapp directory (files must be moved manually)zE -F | --transit-webapp : Change webapp domain/aliasz9 -Z | --restart-webapp : Restart webappz6 -t | --stop-webapp : Stop webappz^ -c | --user-current : Show currently selected alternative for user webappzQ -b | --set-user-current : Set alternative as user webapp defaultzc -e | --enable-user-extensions PACKAGES : Install comma-separated list of packages for user webappze -d | --disable-user-extensions PACKAGES : Uninstall comma-separated list of packages for user webappzK : Use '-' (minus) for all packageszb -r | --replace-user-extensions PACKAGES : Update comma-separated list of packages for user webappzN --recreate-virtualenv : Recreate python virtual environmentzX --freeze-requirements : Freeze virtual environment installed packageszR -g | --list-user-extensions : List installed packages for user webappz5 -o | --setup-wsgi WSGI[:CALLABLE] : Setup wsgizZ -p | --print-summary : If specified along with setting an alternative z> prints user summaryz= -j | --json : Print data as JSONzO | --verbose : show detail information about action)�print� r r �K/opt/alt/python37/lib/python3.7/site-packages/clselect/clselectctlpython.py�usageR s>