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
27
28
29
U
W±dö ã@szddlmZddlZddlZeeeeeedœdd„Zdddd    d
d d d ggd dgdd ggddddggddddggdœZdS)é)ÚTupleN)Ú    icon_pathÚ allowed_typesÚ convert_typeÚworkpathÚreturnc sltj |¡std|›dƒ‚tj |¡\}}|dd…}||krt|}t|dƒ}| tdd„|Dƒƒ¡‰W5QRXt    ‡fdd„|Dƒƒr|Szd    d
l
m }d    dl
}    Wn6t k
rÞt d |›d |›d |›d|›d    ƒ‚YnXzTdt | ¡¡ ¡›d|›}
tj ||
¡} | |¡} |  | ¡W5QRX| }Wn2|    jk
rft d|›d|›d|›ƒ‚YnX|S)aù
    Returns a valid icon path or raises an Exception on error.
    Ensures that the icon exists, and, if necessary, attempts to convert it to correct OS-specific format using Pillow.
 
    Takes:
    icon_path - the icon given by the user
    allowed_types - a tuple of icon formats that should be allowed through
        EX: ("ico", "exe")
    convert_type - the type to attempt conversion too if necessary
        EX: "icns"
    workpath - the temp directory to save any newly generated image files
    zIcon input file z
 not foundéNÚrbcss|]}t|ƒVqdS©N)Úlen©Ú.0Ús©rúPd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\PyInstaller/building/icon.pyÚ    <genexpr>,sz&normalize_icon_type.<locals>.<genexpr>c3s&|]}tˆƒdt|ƒ…|kVqdSr
)Úlistr r ©Úheaderrrr-sr)ÚImagezReceived icon image 'zH' which exists but is not in the correct format. On this platform, only z… images may be used as icons. If Pillow is installed, automatic conversion will be attempted. Please install Pillow or convert your 'z' file to one of z and try again.z
generated-Ú.z,Something went wrong converting icon image 'z' to '.zœ' with Pillow, perhaps the image format is unsupported. Try again with a different file or use a file that can be used without conversion on this platform: )ÚosÚpathÚexistsÚFileNotFoundErrorÚsplitextÚhex_signaturesÚopenÚreadÚmaxÚanyÚPILrÚ ImportErrorÚ
ValueErrorÚhashlibÚsha256ÚencodeÚ    hexdigestÚjoinÚsaveZUnidentifiedImageError) rrrrÚ_Ú    extensionZ
signaturesÚfZPILImager!Z_generated_nameZgenerated_iconZimrrrÚnormalize_icon_types8   "  ÿ
 ÿ
r-é‰éPéNéGé é
ééMéZréiécénés)ZpngZexeZicoZicns)Útypingrrr$Ústrr-rrrrrÚ<module> s ?  ü