관리-도구
편집 파일: zipapp.cpython-310.opt-2.pyc
o 6��fo � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZg d�ZdZej � d�r+dZne�� ZG dd� de �Ze jdd � �Zd d� Zddd �Z ddd�Zdd� Zddd�Zedkr`e� dS dS )� N)�ZipAppError�create_archive�get_interpreterz8# -*- coding: utf-8 -*- import {module} {module}.{fn}() �win�utf-8c @ s e Zd ZdS )r N)�__name__� __module__�__qualname__� r r �-/opt/alt/python310/lib64/python3.10/zipapp.pyr ! s r c c sR � t | ttjf�r$t| |��}|V W d � d S 1 sw Y d S | V d S �N)� isinstance�str�os�PathLike�open)�archive�mode�fr r r �_maybe_open% s �"� r c C s* |rd|� t� d }| �|� d S d S )N� #!� )�encode�shebang_encoding�write)r �interpreterZshebangr r r �_write_file_prefix. s �r c C s� t | d��<}|�d�}|dkrd}|�� t |d��}t||� |�|� t�||� W d � n1 s6w Y W d � n1 sEw Y |r`t|t�rbt � |t �|�jtj B � d S d S d S )N�rb� r � �wb)r �read�readliner r �shutilZcopyfileobjr r r �chmod�stat�st_mode�S_IEXEC)r Znew_archiver �srcZfirst_2Zdstr r r � _copy_archive5 s ����r) Fc C s d}t | d�rt | d�rd}nt�| �} | �� rd}|r%t| ||� d S | �� s-td��| d �� }|r;|r;td��|sC|sCtd��d }|r||�d �\} } }td d� | � d�D ��}td d� |� d�D ��} | d kro|ro| sutd| ��t j| |d�}|d u r�| �d�}n t |d�s�t�|�}t |d��U}t||� |r�tjntj}tj|d|d��0}| �d�D ]}|�| �}|d u s�||�r�|�||�� � q�|r�|�d|�d�� W d � n1 s�w Y W d � n1 s�w Y |�rt |d��s |�|�� jtjB � d S d S d S )NFr! r"