o
    tBhb                     @   sB   d dl Z d dlZd dlmZ dd Zedkree jd  dS dS )    N)Tempitac                 C   s   |  dstd|  tjj}|| t d}| }tj	
| d }t|d}|| W d   dS 1 s9w   Y  dS )zProcess tempita templated file and write out the result.

    The template file is expected to end in `.c.in` or `.pyx.in`:
    E.g. processing `template.c.in` generates `template.c`.

    z.inzUnexpected extension: %s)encodingr   wN)endswith
ValueErrortempitaTemplatefrom_filenamesysgetdefaultencoding
substituteospathsplitextopenwrite)fromfiler	   templatecontentoutfilef r   q/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/scipy/_build_utils/tempita.pyprocess_tempita	   s   
"r   __main__   )r
   r   Cythonr   r   r   __name__argvr   r   r   r   <module>   s    