B
    0db                 @   s>   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 )    N)Tempitac          	   C   sj   |  dstd|  tjj}|| t d}| }tj	
| d }t|d}|| W dQ R X 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   L/var/www/html/venv/lib/python3.7/site-packages/scipy/_build_utils/tempita.pyprocess_tempita	   s    
r   __main__   )r
   r   Cythonr   r   r   __name__argvr   r   r   r   <module>   s
   