grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026a ´i3ã@sddlZddlZddlZddlZddlZddlZddlmZm Z ddgZ Gdd„de ƒZ Gdd„de ƒZ dd d „Zd d d „Zefd d„ZGdd„deƒZd!dd„Zd"dd„Zefdd„Zdd„Zd#dd„Zedk�r eejƒdk�rôedejd�nejd=eejdƒdS)$éN)Ú read_codeÚ get_importerÚ run_moduleÚrun_pathc@s$eZdZdd„Zdd„Zdd„ZdS)Ú _TempModulecCs||_t |¡|_g|_dS©N)Úmod_nameÚtypesÚ ModuleTypeÚmoduleÚ _saved_module©Úselfr©rú/usr/lib64/python3.9/runpy.pyÚ__init__s z_TempModule.__init__cCs@|j}z|j tj|¡Wnty.Yn0|jtj|<|Sr)rr ÚappendÚsysÚmodulesÚKeyErrorr r rrrÚ __enter__ s  z_TempModule.__enter__cGs.|jr|jdtj|j<n tj|j=g|_dS©Nr)r rrr©rÚargsrrrÚ__exit__)s z_TempModule.__exit__N©Ú__name__Ú __module__Ú __qualname__rrrrrrrrs rc@s$eZdZdd„Zdd„Zdd„ZdS)Ú_ModifiedArgv0cCs||_tƒ|_|_dSr)ÚvalueÚobjectÚ _saved_valueÚ _sentinel)rr rrrr1sz_ModifiedArgv0.__init__cCs0|j|jurtdƒ‚tjd|_|jtjd<dS)NzAlready preserving saved valuer)r"r#Ú RuntimeErrorrÚargvr )rrrrr5s  z_ModifiedArgv0.__enter__cGs|j|_|jtjd<dSr)r#r r"rr%rrrrr;sz_ModifiedArgv0.__exit__Nrrrrrr0src Csn|dur| |¡|dur(d}|}d} n |j}|j}|j} |durH|j}|j||| d|||d�t||ƒ|S)N)rÚ__file__Ú __cached__Ú__doc__Ú __loader__Ú __package__Ú__spec__)ÚupdateÚloaderÚoriginÚcachedÚparentÚexec) ÚcodeÚ run_globalsÚ init_globalsrÚmod_specÚpkg_nameÚ script_namer-Úfnamer/rrrÚ _run_code@s* ú r9c Cs†|dur |n|j}t|ƒ�T}t|ƒ�,|jj}t|||||||ƒWdƒn1sV0YWdƒn1st0Y| ¡Sr)r.rrr Ú__dict__r9Úcopy) r2r4rr5r6r7r8Ú temp_moduleÚ mod_globalsrrrÚ_run_module_codeZsÿ@r>c Csd| d¡r|dƒ‚| d¡\}}}|rÂz t|ƒWnJty|}z2|jdusf|j|krh| |jd¡sh‚WYd}~n d}~00tj |¡}|durÂt|dƒsÂddl m }dj ||d�}|t |ƒƒzt j |¡}Wnvttttf�yH} zTd}| d ¡�r|d |dd …›d |›d �7}||  |t| ƒj| ¡ƒ| ‚WYd} ~ n d} ~ 00|du�r`|d|ƒ‚|jdu�rä|dk�s‚| d¡�rŠ|dƒ‚z|d} t| |ƒWS|�yâ}z*|tjv�r¾‚|d||fƒ‚WYd}~n d}~00|j} | du�r|d|ƒ‚z|  |¡} Wn4t�yB}z|t |ƒƒ|‚WYd}~n d}~00| du�rZ|d|ƒ‚||| fS)NÚ.z#Relative module names not supportedÚ__path__r)Úwarnzš{mod_name!r} found in sys.modules after import of package {pkg_name!r}, but prior to execution of {mod_name!r}; this may result in unpredictable behaviour)rr6z:Error while finding module specification for {!r} ({}: {})z.pyz . Try using 'éýÿÿÿz' instead of 'z' as the module name.zNo module named %sÚ__main__z .__main__z%Cannot use package as __main__ modulez3%s; %r is a package and cannot be directly executedz0%r is a namespace package and cannot be executedzNo code object available for %s)Ú startswithÚ rpartitionÚ __import__Ú ImportErrorÚnamerrÚgetÚhasattrÚwarningsrAÚformatÚRuntimeWarningÚ importlibÚutilÚ find_specÚAttributeErrorÚ TypeErrorÚ ValueErrorÚendswithÚtyperÚsubmodule_search_locationsÚ_get_module_detailsr-Úget_code) rÚerrorr6Ú_ÚeÚexistingrAÚmsgÚspecÚexÚ pkg_main_namer-r2rrrrWhsj  ÿ  ý  ÿ 0     ÿ ÿ$  rWc@s eZdZdS)Ú_ErrorN)rrrrrrrra¥sraTc Csšz0|s|dkr t|tƒ\}}}nttƒ\}}}Wn<tyl}z$dtj|f}t |¡WYd}~n d}~00tjdj}|rŠ|jtj d<t ||dd|ƒS)NrCz%s: %sr) rWraÚ_get_main_module_detailsrÚ executableÚexitrr:r.r%r9)rÚ alter_argvr5r2Úexcr]Ú main_globalsrrrÚ_run_module_as_main¬s    ÿrhFcCs@t|ƒ\}}}|dur|}|r,t||||ƒSt|i|||ƒSdSr)rWr>r9)rr4Úrun_nameÚ alter_sysr5r2rrrrÈs c Cs˜d}tj|}tj|=zpzt|ƒWW|tj|<Styx}z2|t|ƒvrb|d|tjdfƒ|‚‚WYd}~n d}~00W|tj|<n |tj|<0dS)NrCzcan't find %r module in %rr)rrrWrGÚstrÚpath)rYÚ main_nameÚ saved_mainrfrrrrbæs    ù  ÿÿrbcCsŽtj t |¡¡}t |¡�}t|ƒ}Wdƒn1s:0Y|dur†t |¡� }t| ¡|dƒ}Wdƒn1s|0Y||fS)Nr1) ÚosrlÚabspathÚfsdecodeÚioÚ open_coderÚcompileÚread)rir8Ú decoded_pathÚfr2rrrÚ_get_code_from_fileùs & .rxc Cs’|dur d}| d¡d}t|ƒ}d}t|ƒjdkrFt|ƒjdkrFd}t|tdƒƒsX|rxt||ƒ\}}t|||||d�Stj   d|¡zÞt ƒ\}} }t |ƒ�Ž} t |ƒ�d| jj} t|| ||| |ƒ ¡WdƒWdƒWztj  |¡WSt�yYS0S1�s0YWdƒn1�s20YWztj  |¡Wnt�ybYn0n(ztj  |¡Wnt�yŠYn00dS) Nz r?rFÚimpÚ NullImporterT)r6r7)rErrUrrÚ isinstancerxr>rrlÚinsertrbrrr r:r9r;ÚremoverS) Ú path_namer4rir6ÚimporterÚis_NullImporterr2r8rr5r<r=rrrrsHÿ  ÿÿ$ú6ýrCéz!No module specified for execution)Úfile)NNNNN)NNNNN)T)NNF)NN)rÚimportlib.machineryrNÚimportlib.utilrrr roÚpkgutilrrÚ__all__r!rrr9r>rGrWÚ ExceptionrarhrrbrxrrÚlenr%ÚprintÚstderrrrrrÚ s@ÿþ þ  = ÿ   6