ok

Mini Shell

Direktori : /opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/__pycache__/zipapp.cpython-311.opt-2.pyc

�

�fo��*�ddlZddlZddlZddlZddlZddlZddlZgd�ZdZej	�
d��rdZnej��ZGd�de
��Zejd���Zd	�Zdd
�Z		dd�Zd
�Zdd�Zedkre��dSdS)�N)�ZipAppError�create_archive�get_interpreterz8# -*- coding: utf-8 -*-
import {module}
{module}.{fn}()
�win�utf-8c��eZdZdS)rN)�__name__�
__module__�__qualname__���-/opt/alt/python311/lib64/python3.11/zipapp.pyrr!s�������Dr
rc#�K�t|ttjf��r/t	||��5}|V�ddd��dS#1swxYwYdS|V�dS�N)�
isinstance�str�os�PathLike�open)�archive�mode�fs   r�_maybe_openr%s������'�C���-�.�.��
�'�4�
 �
 �	�A��G�G�G�	�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�	�	��
�
�
�
�
s�A�A
�
A
c�z�	|r7d|�t��zdz}|�|��dSdS)N�#!�
)�encode�shebang_encoding�write)r�interpreter�shebangs   r�_write_file_prefixr".sM������+�,�,�-=�>�>�>��F��	����������r
c�&�	t|d��5}|�d��}|dkrd}|���t|d��5}t||��|�|��tj||��ddd��n#1swxYwYddd��n#1swxYwY|rPt|t��r=tj
|tj|��jtj
z��dSdSdS)N�rb�rr
�wb)r�read�readliner"r�shutil�copyfileobjrrr�chmod�stat�st_mode�S_IEXEC)r�new_archiver �src�first_2�dsts      r�
_copy_archiver35s���B�	�W�d�	#�	#�)�s��(�(�1�+�+���e����G��L�L�N�N�N�
��d�
+�
+�	)�s��s�K�0�0�0�
�I�I�g������s�C�(�(�(�
	)�	)�	)�	)�	)�	)�	)�	)�	)�	)�	)����	)�	)�	)�	)�)�)�)�)�)�)�)�)�)�)�)����)�)�)�)�"�K�z�+�s�3�3�K�
���b�g�k�2�2�:�T�\�I�J�J�J�J�J�K�K�K�Ks6�AB2�;B�B2�B	�B2�"B	�#B2�2B6�9B6Fc��	d}t|d��rt|d��rd}n*tj|��}|���rd}|rt	|||��dS|���st
d���|dz���}|r|rt
d���|s|st
d���d}|r�|�d	��\}	}
}td
�|	�	d��D����}td�|�	d��D����}
|
d	kr|r|
st
d
|z���t�|	|���}|�|�d��}n$t|d��stj|��}t|d��5}t||��|rtjntj}tj|d|���5}|�d��D]L}|�|��}|�||��r(|�||������M|r)|�d|�d����ddd��n#1swxYwYddd��n#1swxYwY|rKt|d��s=|�|���jt4jz��dSdSdS)NFr'r(TzSource does not existz__main__.pyz8Cannot specify entry point if the source has __main__.pyzArchive has no entry point�:c3�>K�|]}|���V��dSr��isidentifier��.0�parts  r�	<genexpr>z!create_archive.<locals>.<genexpr>{s.����D�D�T�T�&�&�(�(�D�D�D�D�D�Dr
�.c3�>K�|]}|���V��dSrr7r9s  rr<z!create_archive.<locals>.<genexpr>|s.����B�B�D�D�%�%�'�'�B�B�B�B�B�Br
zInvalid entry point: )�module�fnz.pyzrr&�w)�compression�*r)�hasattr�pathlib�Path�is_filer3�existsr�	partition�all�split�
MAIN_TEMPLATE�format�with_suffixrr"�zipfile�ZIP_DEFLATED�
ZIP_STORED�ZipFile�rglob�relative_tor�as_posix�writestrrr+r,r-r.)�source�targetr �main�filter�
compressed�source_is_file�has_main�main_py�mod�sepr@�mod_ok�fn_ok�fdrB�z�child�arcnames                   rrrLs����&�N��v�v���"�7�6�:�#>�#>�"������f�%�%���>�>���	"�!�N����f�f�k�2�2�2����=�=�?�?�3��1�2�2�2���&�/�/�1�1�H��H��H��F�H�H�	H��8�H�8��6�7�7�7��G��:��~�~�c�*�*���S�"��D�D�S�Y�Y�s�^�^�D�D�D�D�D���B�B�B�H�H�S�M�M�B�B�B�B�B���s�
�
�v�
�%�
��5��<�=�=�=��&�&�c�b�&�9�9��
�~��#�#�F�+�+���
�V�W�
%�
%�&���f�%�%��	�V�T�	"�	"�
C�b��2�{�+�+�+�/9�*�w�+�+��)�	�
�_�R��+�
>�
>�
>�	C�!����c�*�*�
7�
7���+�+�F�3�3���>�V�V�G�_�_�>��G�G�E�7�#3�#3�#5�#5�6�6�6���
C��
�
�=�'�.�.��*A�*A�B�B�B�
	C�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C����	C�	C�	C�	C�	
C�
C�
C�
C�
C�
C�
C�
C�
C�
C�
C����
C�
C�
C�
C��;�7�6�7�3�3�;����V�[�[�]�]�*�T�\�9�:�:�:�:�:�;�;�;�;s8�?AJ2�BJ�J2�J	�J2�"J	�#J2�2J6�9J6c� �t|d��5}|�d��dkrJ|�������t
��cddd��S	ddd��dS#1swxYwYdS)Nr$r%r)rr'r(�strip�decoder)rrs  rrr�s���	�W�d�	#�	#�A�q��6�6�!�9�9�����:�:�<�<�%�%�'�'�.�.�/?�@�@�A�A�A�A�A�A�A�A��A�A�A�A�A�A�A�A�A�A�A�A����A�A�A�A�A�As�AB�B�
Bc�,�	ddl}|���}|�dddd���|�dddd���|�d	d
dd���|�dd
dd���|�dddd���|�dd���|�|��}|jrt
j�|j��std���t|j��}td�|pd����tjd��t
j�|j��rz|j�Nt
j�|j��r9t
j�|j|j��rtd���|jrtd���t'|j|j|j|j|j���dS)Nrz--outputz-ozAThe name of the output archive. Required if SOURCE is an archive.)�default�helpz--pythonz-pzEThe name of the Python interpreter to use (default: no shebang line).z--mainz-mzLThe main function of the application (default: use an existing __main__.py).z
--compressz-c�
store_truezQCompress files with the deflate method. Files are stored uncompressed by default.)�actionrlz--infoFz)Display the interpreter from the archive.)rkrnrlrWz'Source directory (or existing archive).)rlz%Can only get info for an archive filezInterpreter: {}z<none>z-In-place editing of archives is not supportedz,Cannot change the main function when copying)r rYr[)�argparse�ArgumentParser�add_argument�
parse_args�infor�path�isfilerW�
SystemExitr�printrM�sys�exit�outputrH�samefilerYr�python�compress)�argsro�parserr s    rrYrY�sN����O�O�O�
�
$�
$�
&�
&�F�
���
�D�$�5��6�6�6����
�D�$�/��0�0�0�����$��;��<�<�<�����d�<�=��>�>�>�����%��<��>�>�>�
����:��<�<�<����T�"�"�D��y���w�~�~�d�k�*�*�	F��D�E�E�E�%�d�k�2�2��
��&�&�{�'>�h�?�?�@�@�@�������	�w�~�~�d�k�"�"�M��;��2�7�>�>�$�+�#>�#>��#%�7�#3�#3�D�K���#M�#M���L�M�M�M��9�	M��K�L�L�L��4�;���#�{���"�m�-�-�-�-�-�-r
�__main__r)NNNNF)�
contextlibrrEr)r,rxrO�__all__rL�platform�
startswithr�getfilesystemencoding�
ValueErrorr�contextmanagerrr"r3rrrYr	rr
r�<module>r�sk������	�	�	�	�����
�
�
�
�����
�
�
�
�����
>�
>�
>���
��<���5�!�!�3����0�s�0�2�2��	�	�	�	�	�*�	�	�	�����������K�K�K�K�.@D�+0�G;�G;�G;�G;�TA�A�A�.-�.-�.-�.-�b�z����D�F�F�F�F�F��r

Zerion Mini Shell 1.0