%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python37/lib/python3.7/site-packages/mako/__pycache__/
Upload File :
Create Path :
Current File : //opt/alt/python37/lib/python3.7/site-packages/mako/__pycache__/cmd.cpython-37.pyc

B

�C]�	�@s|ddlmZddlmZddlmZddlZddlmZddlm	Z	ddl
mZdd	�Zd
d�Z
ddd
�Zedkrxe�dS)�)�ArgumentParser)�dirname)�isfileN)�
exceptions)�TemplateLookup)�TemplatecCsd|kr|dfS|�dd�S)N�=��)�split)�var�r
�9/opt/alt/python37/lib/python3.7/site-packages/mako/cmd.py�varsplitsrcCs"tj�t�����t�d�dS)Nr
)�sys�stderr�writerZtext_error_template�render�exitr
r
r
r�_exitsrc	CsBt�}|jdgddd�|jdgddd�|jdddd	�|jd
ddd
�|�|�}|j}|jdkr�|jpndg}t|�}yttj	�
�||d�}Wq�t�Yq�XnX|j}t|�s�t
d|��|jp�t|�g}t|�}yt|||d�}Wnt�YnXtdd�|jD��}ytj�|jf|��Wnt�YnXdS)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)rr�input�?�-)�nargsr�.)�lookup�output_encodingzerror: can't find %s)�filenamerr cSsg|]}t|��qSr
)r)�.0rr
r
r�
<listcomp>Qszcmdline.<locals>.<listcomp>)r�add_argument�
parse_argsr rZtemplate_dirrrr�stdin�readrr�
SystemExitr�dictr�stdoutrr)	�argv�parser�optionsr Zlookup_dirsr�templater!�kwr
r
r�cmdlinesV

r0�__main__)N)�argparser�os.pathrrr�makorZmako.lookuprZ
mako.templaterrrr0�__name__r
r
r
r�<module>s
=

Zerion Mini Shell 1.0