Your IP : 3.138.113.44


Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/runpy.cpython-310.opt-2.pyc

o

6��f73�@s	ddlZddlZddlZddlZddlZddlZddgZGdd�de�Z	Gdd�de�Z
			ddd	�Z			dd
d�Ze
fdd
�ZGdd�de�Zddd�Z		d dd�Ze
fdd�Zdd�Zd!dd�Zedkr�eej�dkrzedejd�dSejd=eejd�dSdS)"�N�
run_module�run_pathc@s&eZdZ	dd�Zdd�Zdd�ZdS)�_TempModulecCs||_t�|�|_g|_dS�N)�mod_name�types�
ModuleType�module�
_saved_module��selfr�r
�,/opt/alt/python310/lib64/python3.10/runpy.py�__init__s
z_TempModule.__init__cCs@|j}z|j�tj|�Wn	tyYnw|jtj|<|Sr)rr
�append�sys�modules�KeyErrorr	rr
r
r�	__enter__s�z_TempModule.__enter__cGs.|jr
|jdtj|j<ntj|j=g|_dS�Nr)r
rrr�r�argsr
r
r�__exit__(s

z_TempModule.__exit__N��__name__�
__module__�__qualname__rrrr
r
r
rrs
	rc@s$eZdZdd�Zdd�Zdd�ZdS)�_ModifiedArgv0cCs||_t�|_|_dSr)�value�object�_saved_value�	_sentinel)rrr
r
rr0sz_ModifiedArgv0.__init__cCs0|j|jur
td��tjd|_|jtjd<dS)NzAlready preserving saved valuer)r r!�RuntimeErrorr�argvr)rr
r
rr4sz_ModifiedArgv0.__enter__cGs|j|_|jtjd<dSr)r!rr rr#rr
r
rr:sz_ModifiedArgv0.__exit__Nrr
r
r
rr/src
	Csp	|dur
|�|�|durd}|}d}	n|j}|j}|j}	|dur%|j}|j|||	d|||d�t||�|S)N)r�__file__�
__cached__�__doc__�
__loader__�__package__�__spec__)�update�loader�origin�cached�parent�exec)
�codeZrun_globals�init_globalsr�mod_spec�pkg_name�script_namer+�fnamer-r
r
r�	_run_code?s,
�
r6c	
Cs�	|dur|n|j}t|��7}t|��|jj}t|||||||�Wd�n1s,wYWd�|��SWd�|��S1sHwY|��Sr)r,rrr	�__dict__r6�copy)	r0r1rr2r3r4r5�temp_module�mod_globalsr
r
r�_run_module_codeYs�(���r;c
Cs.|�d�r	|d��|�d�\}}}|razt|�Wn%ty>}z|jdus3|j|kr4|�|jd�s4�WYd}~nd}~wwtj�|�}|durat|d�saddl	m
}dj||d�}|t|��zt
j�|�}Wn3ttttfy�}	z#d}|�d	�r�|d
|dd��d|�d
�7}||�|t|	�j|	��|	�d}	~	ww|dur�|d|��|jdur�|dks�|�d�r�|d��z
|d}
t|
|�WS|y�}z|tjvrт|d||f��d}~ww|j}|dur�|d|��z|�|�}Wnt�y}z|t|��|�d}~ww|du�r|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)rr3z: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�errorr3�_�eZexistingr>�msg�specZexZ
pkg_main_namer+r0r
r
rrTgsz
����

���	

������

rTc@seZdZdS)�_ErrorN)rrrr
r
r
rr[�sr[Tc
Cs�	z|s|dkrt|t�\}}}ntt�\}}}Wnty7}zdtj|f}t�|�WYd}~nd}~wwtjdj}|rF|jtj	d<t
||dd|�S)Nr@z%s: %sr)rTr[�_get_main_module_detailsr�
executable�exitrr7r,r#r6)rZ
alter_argvr2r0�excrYZmain_globalsr
r
r�_run_module_as_main�s"
����r`FcCs>	t|�\}}}|dur|}|rt||||�St|i|||�Sr)rTr;r6)rr1�run_nameZ	alter_sysr2r0r
r
rr�sc
Cszd}tj|}tj|=z+zt|�WW|tj|<Sty6}z|t|�vr1|d|tjdf�|��d}~ww|tj|<w)Nr@zcan't find %r module in %rr)rrrTrD�str�path)rVZ	main_nameZ
saved_mainr_r
r
rr\�s"

�����r\cCs�ddlm}tj�t�|��}t�|��}||�}Wd�n1s#wY|durLt�|��}t|�	�|d�}Wd�||fS1sGwY||fS)Nr)�	read_coder/)
�pkgutilrd�osrc�abspath�fsdecode�io�	open_code�compile�read)rar5rdZdecoded_path�fr0r
r
r�_get_code_from_file�s
�
��rnc
Cs�	|durd}|�d�d}ddlm}||�}d}t|�jdkr*t|�jdkr*d}t|td��s3|rCt||�\}}t|||||d	�St	j
�d|�zkt�\}	}
}t
|��D}t|��0|jj}t|||||
|���Wd�Wd�Wzt	j
�|�WSty�YSw1s�wYWd�n1s�wYWz	t	j
�|�WdSty�YdSwzt	j
�|�Wwty�Yww)
Nz
<run_path>r<r)�get_importerFZimpZNullImporterT)r3r4)rBrerorRrr�
isinstancernr;rrc�insertr\rrr	r7r6r8�removerP)
Z	path_namer1rar3roZimporterZis_NullImporterr0r5rr2r9r:r
r
rrsX�
����.�����r@�z!No module specified for execution)�file)NNNNN)T)NNF)NN)r�importlib.machineryrK�importlib.utilrirrf�__all__rrrr6r;rDrT�	Exceptionr[r`rr\rnrr�lenr#�print�stderrr
r
r
r�<module>sD�
�
�=

�
7�

?>