hyb
2026-01-30 7657e1b2fa251a2ea372710ad75cb395a3c0e374
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Ë
hñúh
ãóâ—dZddlZddlZddlZgd¢Z    ddlZ    ddlm    Z    d„Z
dZ dZ da d    aejej ej"«Zd
„Z    eej*d «Zej*d =e«d„Zedd„«Zd„Zedefd„«Zd„Zej@d„«Z!y#e$rdZYŒŸwxYw#e$rdZ    YŒ¥wxYw#eef$re
d d d    ¬«YŒ^e$re
ddd    ¬«YŒowxYw)a>
This module connects to the bootloader to send messages to the splash screen.
 
It is intended to act as a RPC interface for the functions provided by the bootloader, such as displaying text or
closing. This makes the users python program independent of how the communication with the bootloader is implemented,
since a consistent API is provided.
 
To connect to the bootloader, it connects to a local tcp socket whose port is passed through the environment variable
'_PYI_SPLASH_IPC'. The bootloader creates a server socket and accepts every connection request. Since the os-module,
which is needed to request the environment variable, is not available at boot time, the module does not establish the
connection until initialization.
 
The protocol by which the Python interpreter communicates with the bootloader is implemented in this module.
 
This module does not support reloads while the splash screen is displayed, i.e. it cannot be reloaded (such as by
importlib.reload), because the splash screen closes automatically when the connection to this instance of the module
is lost.
éN)ÚCLOSE_CONNECTIONÚFLUSH_CHARACTERÚis_aliveÚcloseÚ update_text©Úupdate_wrappercór—tr1tjt«}|j||g|¢­i|¤Žyy)z¹
    Conditional wrapper around logging module. If the user excluded logging from the imports or it was not imported,
    this function should handle it and avoid using the logger.
    N)Ú_loggingÚ    getLoggerÚ__name__Úlog)ÚlevelÚmsgÚargsÚkwargsÚloggers     úVH:\Change_password\venv_build\Lib\site-packages\PyInstaller/fake-modules/pyi_splash.pyÚ_logr9s6€õ
Ü×#Ñ#¤HÓ-ˆØˆ
‰
5˜#Ð/ Ò/¨Ó/ðóóó FTcó¾—tdk(rday    tjdtf«dadat dd«y#t $r}tdt›d    «|‚d}~wwxYw)
z.
    Initialize this module
 
    :return:
    rTNz    127.0.0.1Fé
zAIPC connection to the splash screen was successfully established.zCould not connect to TCP port ú.)Ú    _ipc_portÚ _initializedÚ _ipc_socketÚconnectÚ_ipc_socket_closedrÚOSErrorÚConnectionError)Úerrs rÚ _initializer$Osl€ôA‚~؈ ØðVÜ×ј[¬)Ð4Ô5Ø"Ðàˆ Ü ˆRÐTÕUøÜ òVÜР>¼y¸kÈÐKÓLÐRUÐUûðVúsŽ+:º    AÁAÁAÚ_PYI_SPLASH_IPCézeThe environment does not allow connecting to the splash screen. Did bootloader fail to initialize it?)Úexc_infoé(z1Failed to connect to the bootloader's IPC server!có6‡—ˆfd„}tr t|‰«|S)z´
    Utility decorator for checking whether the function should be executed.
 
    The wrapped function may raise a ConnectionError if the module was not initialized correctly.
    cóz•—trtrtdk7r tdd«yts t    d«‚‰|i|¤ŽS)a
        Executes the wrapped function if the environment allows it.
 
        That is, if the connection to to bootloader has not been closed and the module is initialized.
 
        :raises RuntimeError: if the module was not initialized correctly.
        rrz4Connection to splash screen has already been closed.Nz4This module is not initialized; did it fail to load?)rr rrÚ RuntimeError)rrÚfuncs  €rÚwrapperz"_check_connection.<locals>.wrapperƒs?ø€õ Õ.ܘAŠ~ܐRÐOÔPØ ÝÜÐUÓVÐ VáTÐ$˜VÑ$Ð$rr)r,r-s` rÚ_check_connectionr.}sø€ô %õ"äw Ô%à €Nrcóԗ|€g}|›ddj|«›d}    tj|jd«tz«y#t
$r}t d|›d«|‚d}~wwxYw)a
    Send the command followed by args to the splash screen.
 
    :param str cmd: The command to send. All command have to be defined as procedures in the tcl splash screen script.
    :param list[str] args: All arguments to send to the receiving function
    Nú(ú ú)zutf-8zUnable to send command z to the bootloader)ÚjoinrÚsendallÚencoderr!r")ÚcmdrÚfull_cmdr#s    rÚ _send_commandr8›sm€ð €|؈⠧¡¨¥Ð/€HðaÜ×јHŸO™O¨GÓ4´ÑFÕGøÜ òaÜР7¸°|ÐCUÐVÓWÐ]`Ð`ûðaús+A    Á        A'ÁA"Á"A'có —txrt S)zÈ
    Indicates whether the module can be used.
 
    Returns False if the module is either not initialized or was disabled by closing the splash screen. Otherwise,
    the module should be usable.
    )rr ©rrrr­s€ô Ò 2Ô 2Ð2Ð2rrcó—td|g«y)zæ
    Updates the text on the splash screen window.
 
    :param str msg: the text to be displayed
    :raises ConnectionError: If the OS fails to write to the socket.
    :raises RuntimeError: If the module is not initialized.
    rN)r8)rs rrr·s€ô- # Õ'rcó~—tr7ts0tjt«tj «dayyy)a
    Close the connection to the ipc tcp server socket.
 
    This will close the splash screen and renders this module unusable. After this function is called, no connection
    can be opened to the splash screen again and all functions in this module become unusable.
    TN)rr rr4rrr:rrrrÃs2€õÕ.Ü×ÑÔ,Ô-Ü×ÑÔØ!Ñð/€|rcó—t«y©N)rr:rrÚ_exitr?Ñs€ä    …Grr>)"Ú__doc__ÚatexitÚosÚ_socketÚ__all__Úloggingr Ú ImportErrorÚ    functoolsr    rrrrr ÚsocketÚAF_INETÚ SOCK_STREAMrr$ÚintÚenvironrÚKeyErrorÚ
ValueErrorr"r.r8rÚstrrrÚregisterr?r:rrú<module>rQs_ðñó&Û    ó
â
U€ðãðå(ò 0ðÐØ€ð€ àÐØˆgn‰n˜WŸ_™_¨g×.AÑ.AÓB€ òVð8QِB—J‘JÐ0Ñ1Ó2€IØ

‰
Ð$Ð%ñ„Mòð<òaóðaò"3ðð(Sò(óð(ò "ð‡ñ óñ øðIòØ‚Hðûð òØ‚Nðûðz    *ÐòáØ
ØoØ÷ð
òQáˆÐ @È4×PðQús:”B.™B;Á)CÂ.B8Â7B8Â;CÃCÃC.ÃC.Ã-C.