관리-도구
편집 파일: compileall.cpython-310.opt-2.pyc
o 6��fO � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ d dl m Z g d�Zddd�Z dddddd �dd�Z dddddd �d d�Z ddd�Zdd� Zedkrgee� �Ze�e� dS dS )� N)�partial)�Path)�compile_dir�compile_file�compile_pathc c s� � |dk rt | tj�rt�| �} |std�| �� zt�| �}W n ty6 |dk r2td�| �� g }Y nw |�� |D ]>}|dkrDq=tj � | |�}tj �|�sU|V q=|dkr{|tjkr{|tj kr{tj �|�r{tj �|�s{t||d |d�E d H q=d S )N� zListing {!r}...zCan't list {!r}�__pycache__r � )� maxlevels�quiet)� isinstance�os�PathLike�fspath�print�format�listdir�OSError�sort�path�join�isdir�curdir�pardir�islink� _walk_dir)�dirr r �names�name�fullname� r �1/opt/alt/python310/lib64/python3.10/compileall.pyr s: � � � � ���r F���r ��stripdir� prependdir� limit_sl_dest�hardlink_dupesc C s\ d }|d ur| d us|d urt d��|d ur| } |}d }|dk r%t d��|dkrFddlm} z|� W n ty? d}Y nw ddlm} |d u rNt�� }t| ||d�}d}|dkr�|d ur�|pbd }||d ��#}|� t t||||||| | ||| d �|�}t|dd�}W d � |S 1 s�w Y |S |D ]}t|||||||| | ||| d�s�d }q�|S )N�PDestination dir (ddir) cannot be used in combination with stripdir or prependdirr z%workers must be greater or equal to 0r )�_check_system_limits)�ProcessPoolExecutor)r r T)Zmax_workers)�ddir�force�rxr �legacy�optimize�invalidation_moder$ r% r&