%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/mako/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/mako/__pycache__/cmd.cpython-312.pyc

�

���e�
���ddlmZddlmZddlmZddlZddlmZddlm	Z	ddl
mZd�Zd	�Z
dd
�Zedk(re�yy)
�)�ArgumentParser)�dirname)�isfileN)�
exceptions)�TemplateLookup)�Templatec�6�d|vr|dfS|jdd�S)N�=��)�split)�vars �*/usr/lib/python3/dist-packages/mako/cmd.py�varsplitrs$��
�#�~��R�y���9�9�S�!���c��tjjtj�j��tjd�y)Nr)�sys�stderr�writer�text_error_template�render�exit�rr�_exitrs1���J�J���Z�3�3�5�<�<�>�?��H�H�Q�Krc���t�}|jdgdd��|jdgdd��|jddd�	�|jd
dd�	�|jdd
d��|j|�}|j}|j}|j
dk(rH|jxsdg}t|�}	ttjj�||��}nY|j
}t|�std|z��|jxst|�g}t|�}	t|||��}t!d�|j"D��}		j$di|	��}
|rt'|d|��j)|
�ytj*j)|
�y#t�Y�}xYw#t�Y��xYw#t�YyxYw)Nz--var�appendz5variable (can be used multiple times, use name=value))�default�action�helpz--template-dirz�Directory to use for template lookup (multiple directories may be provided). If not given then if the template is read from stdin, the value defaults to be the current directory, otherwise it defaults to be the parent directory of the file provided.z--output-encodingzforce output encoding)rrz
--output-filez6Write to file upon successful render instead of stdout�input�?�-)�nargsr�.)�lookup�output_encodingzerror: can't find %s)�filenamer%r&c3�2K�|]}t|����y�w�N)r)�.0rs  r�	<genexpr>zcmdline.<locals>.<genexpr>Vs����
3��h�s�m�
3�s��wt)�encodingr)r�add_argument�
parse_argsr&�output_filer �template_dirrrr�stdin�readrr�
SystemExitr�dictrr�openr�stdout)�argv�parser�optionsr&r0�lookup_dirsr%�templater'�kw�rendereds           r�cmdliner?s���
�
�F�
������
D�	��������1�	�	�����T�0G��������
E���
����s�C��8�����%�G��-�-�O��%�%�K��}�}����*�*�3�s�e����,��	���	�	��� �� /��H��=�=���h���3�h�>�?�?��*�*�A�w�x�/@�.A����,��	��!�� /��H�
�
3�w�{�{�
3�	3�B�'�"�8�?�?�(�R�(�����d�_�=�C�C�H�M��J�J���X�&��5	��G��	��G��
�
��s$�*F9�<G
�'G�9G�
G�G)�__main__r))�argparser�os.pathrrr�makor�mako.lookupr�
mako.templaterrrr?�__name__rrr�<module>rGsA��$���
��&�"���
D'�N�z���I�r

Zerion Mini Shell 1.0