관리-도구
편집 파일: req_uninstall.cpython-38.pyc
U ��.e&\ � @ s| d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlm Z d dl mZ d dlm Z mZ d dlmZmZmZ d dlmZ d dlmZmZmZmZmZmZmZmZmZ d d lm Z m!Z! d d l"m#Z# e#�r d dl$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z- d dl.m/Z/ e�0e1�Z2d d� Z3dd� Z4e4dd� �Z5dd� Z6dd� Z7dd� Z8G dd� de9�Z:G dd� de9�Z;G dd� de9�Z<dS )� )�absolute_importN)� pkg_resources)�UninstallationError)�bin_py�bin_user)�WINDOWS�cache_from_source�uses_pycache)� indent_log) �FakeFile�ask�dist_in_usersite� dist_is_local� egg_link_path�is_local�normalize_path�renames�rmtree)�AdjacentTempDirectory� TempDirectory)�MYPY_CHECK_RUNNING) �Any�Callable�Dict�Iterable�Iterator�List�Optional�Set�Tuple)�Distributionc C sl t | �rt}nt}tj�||�}|g}trh|�|d � |�|d � |rZ|�|d � n|�|d � |S )z�Create the fully qualified name of the files created by {console,gui}_scripts for the given ``dist``. Returns the list of file names z.exez .exe.manifestz-script.pywz -script.py)r r r �os�path�joinr �append)�distZscript_nameZis_gui�bin_dirZexe_name�paths_to_remove� r( �C/usr/lib/python3.8/site-packages/pip/_internal/req/req_uninstall.py� _script_names'