选择文件�文件大�最�修改时间�作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
a ´i3ã@sdZddlZddlZddlZddlZddlZddlZddlm Z m Z ddgZ Gdd„de ƒZ Gdd „d e ƒZd d d „Zd!d d „Zefdd„ZGdd„deƒZd"dd„Zd#dd„Zefdd„Zdd„Zd$dd„Zedk�reejƒdk�røedejd�nejd=eejdƒdS)%aZrunpy.py - locating and running Python code using the module namespace Provides support for locating and running Python scripts using the Python module namespace instead of the native filesystem. This allows Python code to play nicely with non-filesystem based PEP 302 importers when locating support scripts as well as when importing modules. éN)Ú read_codeÚ get_importerÚ run_moduleÚrun_pathc@s(eZdZdZdd„Zdd„Zdd„ZdS) Ú _TempModulezCTemporarily replace a module in sys.modules with an empty namespacecCs||_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__Ú__doc__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__N)rrrrrrrrrrr0src Csn|dur| |¡|dur(d}|}d} n |j}|j}|j} |durH|j}|j||| d|||d�t||ƒ|S)z)Helper to run code in nominated namespaceN)rÚ__file__Ú __cached__rÚ __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* ú r8c Cs†|dur |n|j}t|ƒ�T}t|ƒ�,|jj}t|||||||ƒWdƒn1sV0YWdƒn1st0Y| ¡S)z5Helper to run code in new namespace with sys modifiedN)r-rrr Ú__dict__r8Úcopy) r1r3rr4r5r6r7Ú 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)rr5z: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Úwarningsr@ÚformatÚRuntimeWarningÚ importlibÚutilÚ find_specÚAttributeErrorÚ TypeErrorÚ ValueErrorÚendswithÚtyperÚsubmodule_search_locationsÚ_get_module_detailsr,Úget_code) rÚerrorr5Ú_ÚeÚexistingr@ÚmsgÚspecÚexÚ pkg_main_namer,r1rrrrVhsj  ÿ  ý  ÿ 0     ÿ ÿ$  rVc@seZdZdZdS)Ú_ErrorzBError that _run_module_as_main() should report without a tracebackN)rrrrrrrrr`¥sr`Tc Csšz0|s|dkr t|tƒ\}}}nttƒ\}}}Wn<tyl}z$dtj|f}t |¡WYd}~n d}~00tjdj}|rŠ|jtj d<t ||dd|ƒS)aÅRuns the designated module in the __main__ namespace Note that the executed module will have full access to the __main__ namespace. If this is not desirable, the run_module() function should be used to run the module code in a fresh namespace. At the very least, these variables in __main__ will be overwritten: __name__ __file__ __cached__ __loader__ __package__ rBz%s: %sNr) rVr`Ú_get_main_module_detailsrÚ executableÚexitrr9r-r%r8)rÚ alter_argvr4r1Úexcr\Ú main_globalsrrrÚ_run_module_as_main¬s    ÿrgFcCs@t|ƒ\}}}|dur|}|r,t||||ƒSt|i|||ƒSdS)u"Execute a module's code without importing it. mod_name -- an absolute module name or package name. Optional arguments: init_globals -- dictionary used to pre-populate the module’s globals dictionary before the code is executed. run_name -- if not None, this will be used for setting __name__; otherwise, __name__ will be set to mod_name + '__main__' if the named module is a package and to just mod_name otherwise. alter_sys -- if True, sys.argv[0] is updated with the value of __file__ and sys.modules[__name__] is updated with a temporary module object for the module being executed. Both are restored to their original values before the function returns. Returns the resulting module globals dictionary. N)rVr=r8)rr3Úrun_nameÚ alter_sysr4r1rrrrÈs c Cs˜d}tj|}tj|=zpzt|ƒWW|tj|<Styx}z2|t|ƒvrb|d|tjdfƒ|‚‚WYd}~n d}~00W|tj|<n |tj|<0dS)NrBzcan't find %r module in %rr)rrrVrFÚstrÚpath)rXÚ main_nameÚ saved_mainrerrrraæs    ù  ÿÿracCsŽtj t |¡¡}t |¡�}t|ƒ}Wdƒn1s:0Y|dur†t |¡� }t| ¡|dƒ}Wdƒn1s|0Y||fS)Nr0) ÚosrkÚabspathÚfsdecodeÚioÚ open_coderÚcompileÚread)rhr7Ú decoded_pathÚfr1rrrÚ_get_code_from_fileùs & .rwc 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) uExecute code located at the specified filesystem location. path_name -- filesystem location of a Python script, zipfile, or directory containing a top level __main__.py script. Optional arguments: init_globals -- dictionary used to pre-populate the module’s globals dictionary before the code is executed. run_name -- if not None, this will be used to set __name__; otherwise, '' will be used for __name__. Returns the resulting module globals dictionary. Nz r>rFÚimpÚ NullImporterT)r5r6)rDrrTrrÚ isinstancerwr=rrkÚinsertrarrr r9r8r:ÚremoverR) Ú path_namer3rhr5ÚimporterÚis_NullImporterr1r7rr4r;r<rrrrsHÿ  ÿÿ$ú6ýrBéz!No module specified for execution)Úfile)NNNNN)NNNNN)T)NNF)NN)rrÚimportlib.machineryrMÚimportlib.utilrqr rnÚpkgutilrrÚ__all__r!rrr8r=rFrVÚ Exceptionr`rgrrarwrrÚlenr%ÚprintÚstderrrrrrÚsB ÿþ þ  = ÿ   6