zmc
2023-08-08 e792e9a60d958b93aef96050644f369feb25d61b
1
2
3
4
5
6
7
8
9
U
X±d²ã@s*ddlZddlZdd„Zedkr&eƒdS)éNc    Cs¼tjdd}|jdddd|jddd    d
d d | ¡}zbd dlm}| |j¡}|s^tdƒ‚t     
|j dd¡}|  t |ƒ¡W5QRXtd|j ›ƒWntk
r¶tdƒ‚YnXdS)NzœThe printed output may be saved to a file, edited and used as the input for a version resource on any of the executable targets in a PyInstaller .spec file.)ÚepilogÚexe_filezexe-filez%full pathname of a Windows executable)ÚmetavarÚhelpÚ out_filenamez out-filenameú?zfile_version_info.txtz5filename where the grabbed version info will be saved)rÚnargsÚdefaultrr)Ú versioninfoz,Error: VersionInfo resource not found in exeÚwzutf-8zVersion info written to: zAborted by user request.)ÚargparseÚArgumentParserÚ add_argumentÚ
parse_argsZPyInstaller.utils.win32r
Z!read_version_info_from_executablerÚ
SystemExitÚcodecsÚopenrÚwriteÚstrÚprintÚKeyboardInterrupt)ÚparserÚargsr
ÚinfoÚfp©rú^d:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\PyInstaller/utils/cliutils/grab_version.pyÚruns4þýû  rÚ__main__)r rrÚ__name__rrrrÚ<module> s"