o
    $˜=e`  ã                   @   sR   d dl Z e j e j e¡¡Ze j ed¡Ze j e¡o e j e¡Z	dZ
dd„ ZdS )é    NZpython_embededzM
.\python_embeded\python.exe -s Fooocus\entry_with_update.py {cmds} %*
pause
c               	   C   s¢   t sd S g d¢} | D ]D}t d|d u rdnd|› ¡}tj t|d u r%dnd|› d¡}tj |¡sNt|dd	d
}| 	|¡ W d   ƒ n1 sIw   Y  q
d S )N)NZanimeZ	realisticz{cmds}Ú z	--preset zrun.batZrun_z.batÚwzutf-8)Úencoding)
Úis_win32_standalone_buildÚ	win32_cmdÚreplaceÚosÚpathÚjoinÚ
win32_rootÚexistsÚopenÚwrite)ZpresetsÚpresetZwin32_cmd_presetZbat_pathÚf© r   ú1D:\Fooocus_win64_2-1-60\Fooocus\build_launcher.pyÚbuild_launcher   s   "ÿ€r   )r   r	   ÚdirnameÚ__file__r   r
   Zpython_embeded_pathr   Úisdirr   r   r   r   r   r   r   Ú<module>   s    