HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
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
=