관리-도구
편집 파일: main.cpython-310.pyc
o ƚRe� � @ s� d Z ddlZddlZddlZddlZddlmZmZ ddlm Z ddl mZ ddlm Z ddlmZ ddlmZ e�e�Zd d eee d efdd�ZdS )z Primary application entrypoint. � N)�List�Optional)�autocomplete)� parse_command)�create_command)�PipError)�deprecation�args�returnc C s� | d u rt jdd � } t�� t� zt| �\}}W n' tyA } zt j�d|� �� t j�t j � t �d� W Y d }~nd }~ww z t� tjd� W n tjyd } zt�d|� W Y d }~nd }~ww t|d|v d�}|�|�S )N� zERROR: � z%Ignoring error %s when setting localez --isolated)�isolated)�sys�argvr �install_warning_loggerr r r �stderr�write�os�linesep�exit�locale� setlocale�LC_ALL�Error�logger�debugr �main)r �cmd_name�cmd_args�exc�e�command� r"