o
    OZŽhX  ã                   @   s²   d Z ddlZddlZddlmZ ej ej e¡¡Z	g Z
dd„ Zedƒ e ¡ dkr/edƒ ned	ƒ e ¡ d
krUddlmZ edƒZg ZeD ]Ze\ZZe edf¡ qGdS dS )zç
binaries hook for pygame seems to be required for pygame 2.0 Windows.
Otherwise some essential DLLs will not be transferred to the exe.

And also put hooks for datas, resources that pygame uses, to work
correctly with pyinstaller
é    N)Ú__file__c                 C   s0   t j t| ¡}t j |¡rt |df¡ d S d S )NÚpygame)ÚosÚpathÚjoinÚpygame_folderÚexistsÚdatasÚappend)Ú	file_pathZres_path© r   úO/var/www/auris/lib/python3.10/site-packages/pygame/__pyinstaller/hook-pygame.pyÚ_append_to_datas   s   ÿr   zfreesansbold.ttfÚDarwinzpygame_icon_mac.bmpzpygame_icon.bmpÚWindows)Úcollect_dynamic_libsr   Ú.)Ú__doc__r   Úplatformr   r   Zpygame_main_filer   ÚdirnameÚabspathr   r	   r   ÚsystemZPyInstaller.utils.hooksr   Zpre_binariesZbinariesÚbÚbinaryÚlocationr
   r   r   r   r   Ú<module>   s(    
ö