zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
U
W±d… ã@spddlZddlmZmZddlmZddlmZddl    m
Z
m Z m Z e  e¡Zejdd„ƒZdd„Zd    d
„ZdS) éN)Úget_hook_configÚinclude_or_exclude_file)Úisolated)Ú GiModuleInfoÚcollect_glib_share_filesÚcollect_glib_translationscCsZddl}ddl}| dd¡ddlm}| d¡|j ¡}| d¡}|     ¡}|j
  |¡S)NrÚGstú1.0)rZ coreelements) ÚosÚgiZrequire_versionZ gi.repositoryrÚinitZRegistryÚgetZ find_pluginÚ get_filenameÚpathÚdirname)r
r rÚregZplugr©rú_d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\PyInstaller/hooks/hook-gi.repository.Gst.pyÚ_get_gst_plugin_paths  
 
 
rcCs d|›dS)Nz**/*gstz.*r)Z plugin_namerrrÚ_format_plugin_pattern&src
 
s8tddƒ}|jsdS| ¡\}}}|dg7}|tdƒ7}t|ddƒ}dD]}|t||ƒ7}qHz
tƒ}Wn2tk
r˜}zt     d|¡d}W5d}~XYnX|rt
  |¡}t|d    d
ƒ‰t|d    d ƒ‰ˆdk    rØd d „ˆDƒ‰ˆdk    rîdd „ˆDƒ‰dD]"}    |‡‡fdd „|  |    ¡Dƒ7}qò|  |¡| |¡|j|ŽdS)Nrr    zgi.repository.Gioú gstreamer-1.0r Ú    languages)zgst-plugins-bad-1.0zgst-plugins-base-1.0zgst-plugins-good-1.0zgst-plugins-ugly-1.0rz-Failed to determine gstreamer plugin path: %sZ    gstreamerZinclude_pluginsZexclude_pluginscSsg|] }t|ƒ‘qSr©r©Ú.0ÚnamerrrÚ
<listcomp>Pszhook.<locals>.<listcomp>cSsg|] }t|ƒ‘qSrrrrrrrRs)z    *gst*.dllz *gst*.dylibz*gst*.socs$g|]}t|ˆˆƒrt|ƒdf‘qS)Z gst_plugins)rÚstr)rÚfilename©Z exclude_listÚ include_listrrrXs ÿ)rÚ    availableZcollect_typelib_datarrrrÚ    ExceptionÚloggerÚwarningÚpathlibÚPathÚglobZ    add_datasZ add_binariesZ add_imports)
Zhook_apiZ module_infoZbinariesZdatasZ hiddenimportsZ    lang_listÚprogZ plugin_pathÚeZ lib_patternrrrÚhook*s6
 
 
 
   
 
r*)r%ZPyInstaller.utils.hooksrrZPyInstaller.logÚlogÚloggingZ PyInstallerrZPyInstaller.utils.hooks.girrrÚ    getLoggerÚ__name__r#Zdecoraterrr*rrrrÚ<module>s