Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /opt/cppython/lib/python3.8/site-packages/mako/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : //opt/cppython/lib/python3.8/site-packages/mako/__pycache__/cmd.cpython-38.pyc
U

O��g�
�@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
�5/opt/cppython/lib/python3.8/site-packages/mako/cmd.py�varsplitsrcCs"tj�t�����t�d�dS)Nr
)�sys�stderr�writerZtext_error_template�render�exitr
r
r
r�_exitsrcCsxt�}|jdgddd�|jdgddd�|jdddd	�|jd
ddd	�|jdd
dd�|�|�}|j}|j}|jdkr�|jp�dg}t|�}ztt	j
��||d�}Wnt�YnXnX|j}t
|�s�td|��|jp�t|�g}t|�}zt|||d�}Wnt�YnXtdd�|jD��}	z|jf|	�}
Wnt�Yn*X|�rht|d|d��|
�nt	j�|
�dS)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)�filenamerr css|]}t|�VqdS)N)r)�.0rr
r
r�	<genexpr>Vszcmdline.<locals>.<genexpr>Zwt)�encoding)r�add_argument�
parse_argsr �output_filerZtemplate_dirrrr�stdin�readrr�
SystemExitr�dictrr�openr�stdout)�argv�parser�optionsr r'Zlookup_dirsr�templater!�kw�renderedr
r
r�cmdlinesv��
��

�
�
r4�__main__)N)�argparser�os.pathrrr�makorZmako.lookuprZ
mako.templaterrrr4�__name__r
r
r
r�<module>s
G

F1le Man4ger