
    ,j}                     ~    d Z ddlZddlZddlZddlmZ  ej        d          Zd Zd Z	e
dk    r e	             dS dS )z
From the directory containing the static content for a trame application to work,
generate another application specific HTML file.
    N)Pathzdata-launcher-retry=".+"c                 8   t          | d          5 }|                                }t                              d| d|          }t          |d          5 }|                    |           d d d            n# 1 swxY w Y   d d d            d S # 1 swxY w Y   d S )Nrzdata-launcher-retry=""w)openreadRETRY_PATTERNsubwrite)
input_fileoutput_fileretry_arrayf_incontentpatched_contentf_outs          K/DATA/AppData/hermes/venv/lib/python3.11/site-packages/trame/tools/retry.pyupdate_retry_filer      s   	j#		 )$))++'++2K222G
 
 +s## 	)uKK(((	) 	) 	) 	) 	) 	) 	) 	) 	) 	) 	) 	) 	) 	) 	)) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) )s6   ABA7+B7A;	;B>A;	?BBBc                  2   t          j        d          } |                     ddd           |                     dd	           |                                 \  }}t	          |j                  }|                                s(|                                  t          j	        d
           |
                                r|dz  }|                                s(|                                  t          j	        d
           t          |||j                   d S )Nz.HTML app file generator for trame applications)descriptionz--retryz[]z*Retry array for launcher. Times are in ms.)defaulthelpz--inputzInput file to use as template)r   r   z
index.html)argparseArgumentParseradd_argumentparse_known_argsr   inputexists
print_helpsysexitis_dirr   retry)parserargs_r   s       r   mainr(      s/   $D  F 9     ,    
 %%''GD! dj!!J  /,.
 j*dj99999    __main__)__doc__r   rer!   pathlibr   compiler
   r   r(   __name__ r)   r   <module>r1      s    
  				 



      
677) ) ): : :D zDFFFFF r)   