AlkantarClanX12

Your IP : 3.14.132.43


Current Path : /proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python311/lib64/python3.11/__pycache__/runpy.cpython-311.pyc

�

c��fg3���dZddlZddlZddlZddlZddlZddgZee��Z	Gd�de
��ZGd�de
��Z			dd	�Z
			dd
�Zefd�ZGd�d
e��Zdd�Z		dd�Zefd�Zd�Zdd�ZedkrHeej��dkredej���dSejd=eejd��dSdS)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�
run_module�run_pathc�$�eZdZdZd�Zd�Zd�ZdS)�_TempModulezCTemporarily replace a module in sys.modules with an empty namespacec�J�||_t|��|_g|_dS�N)�mod_name�
ModuleType�module�
_saved_module��selfr	s  �,/opt/alt/python311/lib64/python3.11/runpy.py�__init__z_TempModule.__init__s&�� ��
� ��*�*��������c��|j}	|j�tj|��n#t
$rYnwxYw|jtj|<|Sr)r	r�append�sys�modules�KeyErrorrr
s  r�	__enter__z_TempModule.__enter__!sb���=��	���%�%�c�k�(�&;�<�<�<�<���	�	�	��D�	���� $����H���s�*4�
A�Ac��|jr |jdtj|j<ntj|j=g|_dS�Nr)rrrr	�r�argss  r�__exit__z_TempModule.__exit__*s@����	+�)-�);�A�)>�C�K��
�&�&���D�M�*�����rN)�__name__�
__module__�__qualname__�__doc__rrr�rrrrsG������M�M� � � �
��� � � � � rrc� �eZdZd�Zd�Zd�ZdS)�_ModifiedArgv0c�H�||_t��x|_|_dSr)�value�object�_saved_value�	_sentinel)rr%s  rrz_ModifiedArgv0.__init__2s ����
�-3�X�X�5���D�N�N�Nrc��|j|jurtd���tjd|_|jtjd<dS)NzAlready preserving saved valuer)r'r(�RuntimeErrorr�argvr%)rs rrz_ModifiedArgv0.__enter__6s@����D�N�2�2��?�@�@�@��H�Q�K����j������rc�F�|j|_|jtjd<dSr)r(r%r'rr+rs  rrz_ModifiedArgv0.__exit__<s���^��
��'������rN)rrrrrrr!rrr#r#1sA������6�6�6�!�!�!�(�(�(�(�(rr#c	���|�|�|��|�d}|}d}	n|j}|j}|j}	|�|j}|�|||	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_namer4�fnamer6s
          r�	_run_coder@As��������<�(�(�(�����������������������H����(�"'�$*�!%�$*�%-�"*�
�,�,�,�	��{�����rc��|�|n|j}t|��5}t|��5|jj}t|||||||��ddd��n#1swxYwYddd��n#1swxYwY|���S)z5Helper to run code in new namespace with sys modifiedN)r5rr#r�__dict__r@�copy)	r9r;r	r<r=r>r?�temp_module�mod_globalss	         r�_run_module_coderF[s��$�+�K�K���E�	�X�	�	�=�+�~�e�/D�/D�=�=�!�(�1���$��\��H�h��	=�	=�	=�=�=�=�=�=�=�=�=�=�=�=����=�=�=�=�=�=�=�=�=�=�=�=�=�=�=����=�=�=�=������s4�A0�"A�
A0�A	�A0� A	�!A0�0A4�7A4c	��|�d��r|d���|�d��\}}}|r�	t|��nG#t$r:}|j�(|j|kr|�|jdz��s�Yd}~nd}~wwxYwt
j�|��}|�Et|d��s5ddl	m
}d�||���}|t|����	tj�|��}n�#tt t"t$f$rc}	d}|�d	��r|d
|dd��d|�d
�z
}||�|t)|	��j|	����|	�d}	~	wwxYw|�|d|z���|j�i|dks|�d��r|d���	|dz}
t/|
|��S#|$r%}|t
jvr�||�d|�d����d}~wwxYw|j}|�|d|z���	|�|��}n+#t$r}|t|����|�d}~wwxYw|�|d|z���|||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)r	r=z: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__ modulez; z- 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�warningsrJ�format�RuntimeWarning�	importlib�util�	find_spec�AttributeError�	TypeError�
ValueError�endswith�typer�submodule_search_locations�_get_module_detailsr4�get_code)
r	�errorr=�_�e�existingrJ�msg�spec�ex�
pkg_main_namer4r9s
             rr`r`isl�����3���;��e�9�:�:�:��(�(��-�-�N�H�a���&�	��x� � � � ���	�	�	��v�~�!�&�H�"4�"4� �+�+�A�F�S�L�9�9�#5�����������
	�����;�?�?�8�,�,������*�(E�(E��%�%�%�%�%�%��#�F�H�x�F�H�H�
�
�D���$�$�%�%�%�
I��~�'�'��1�1�������J�?�I�I�I�K�����U�#�#�	9��8�H�S�b�S�M�8�8� �8�8�8�
9�C��e�C�J�J�x��b���):�B�?�?�@�@�b�H�����I�����|��e�(�8�3�4�4�4��&�2��z�!�!�X�%6�%6�{�%C�%C�!��%�?�@�@�@�	G�$�{�2�M�&�}�e�<�<�<���	G�	G�	G��s�{�*�*���%�9:���H�H�H�F�G�G�
G�����	G����
�[�F�
�~��e�F�CK�L�M�M�	M�&����x�(�(�����&�&�&��e�F�1�I�I���A�%�����&�����|��e�5��@�A�A�A��T�4��s`�A
�
B�0B�B�;D�F�8AF�F�G1�1H�6 H�H�6I�
I4�I/�/I4c��eZdZdZdS)�_ErrorzBError that _run_module_as_main() should report without a tracebackN)rrrr r!rrrkrk�s������L�L�L�LrrkTc�r�	|s|dkrt|t��\}}}ntt��\}}}n<#t$r/}tj�d|��}tj|��Yd}~nd}~wwxYwtjdj}|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__
    rLz: Nr)r`rk�_get_main_module_detailsr�
executable�exitrrBr5r+r@)r	�
alter_argvr<r9�excrf�main_globalss       r�_run_module_as_mainrs�s�����	H��Z�/�/�':�8�V�'L�'L�$�H�h���'?��'G�'G�$�H�h���������.�.�.�#�#�.�����
�
�
�
�
�
�
�
����������;�z�*�3�L��&��o������T�<����+�+�+s�:=�
A6�%A1�1A6Fc�~�t|��\}}}|�|}|rt||||��St|i|||��S)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.
    )r`rFr@)r	r;�run_name�	alter_sysr<r9s      rrr�sX��* 3�8�<�<��H�h�������E���l�H�h�G�G�G���r�<��8�D�D�Drc�6�d}tj|}tj|=	t|��|tj|<S#t$r9}|t	|��vr"|d|�dtjd����|��d}~wwxYw#|tj|<wxYw)NrLzcan't find z module in r)rrr`rP�str�path)rb�	main_name�
saved_mainrqs    rrmrm�s���
�I���Y�'�J���I��,�"�9�-�-�",���I����
������C��� � ��%�%�(�y�y�#�(�1�+�+�7�8�8�=@�
A�
�����	�����",���I��+�+�+�+s#�A�
B�4A?�?B�B�Bc��ddlm}tj�tj|����}t
j|��5}||��}ddd��n#1swxYwY|�Ot
j|��5}t|�	��|d��}ddd��n#1swxYwY||fS)Nr)�	read_coder8)
�pkgutilr}�osry�abspath�fsdecode�io�	open_code�compile�read)rur?r}�decoded_path�fr9s      r�_get_code_from_filer��s*��!�!�!�!�!�!��7�?�?�2�;�u�#5�#5�6�6�L�	��l�	#�	#��q��y��|�|���������������������|�
�\�,�
'�
'�	4�1��1�6�6�8�8�U�F�3�3�D�	4�	4�	4�	4�	4�	4�	4�	4�	4�	4�	4����	4�	4�	4�	4���;�s$�A$�$A(�+A(�$B5�5B9�<B9c
��|�d}|�d��d}ddlm}||��}d}t|��jdkrt|��jdkrd	}t
|td����s|r't||��\}}t|||||�
��Stj
�d|��	t��\}	}
}t|��5}t|��5|jj}t#|||||
|�����cddd��cddd��	tj
�|��S#t($rYSwxYw#1swxYwYddd��n#1swxYwY	tj
�|��dS#t($rYdSwxYw#	tj
�|��w#t($rYwwxYwxYw)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, '<run_path>' will be used for __name__.

       Returns the resulting module globals dictionary.
    Nz
<run_path>rHr)�get_importerF�imp�NullImporterT)r=r>)rNr~r�r^rr�
isinstancer�rFrry�insertrmrr#rrBr@rC�remover\)
�	path_namer;rur=r��importer�is_NullImporterr9r?r	r<rDrEs
             rrrs�������"�"�3�'�'��*�H�$�$�$�$�$�$��|�I�&�&�H��O��H�~�~� �E�)�)���>�>�"�n�4�4�"�O��(�D��J�J�'�'��?��*�(�I�>�>���e���l�H�)1�u�F�F�F�	F�
	�����9�%�%�%�	�(@�'A�'A�$�H�h���X�&�&�
I�+��	�*�*�
I�
I�)�0�9�� ��{�L�$,�h��B�B�BF�$�&�&�	
I�
I�
I�
I�
I�
I�
I�
I�
I�
I�
I�
I�
I�
I�
�����	�*�*�*�*���
�
�
���
����
I�
I�
I�
I����
I�
I�
I�
I�
I�
I�
I�
I�
I�
I�
I�
I�
I�
I�
I����
I�
I�
I�
I�
�����	�*�*�*�*�*���
�
�
����
�����
�����	�*�*�*�*���
�
�
���
������s��!G
�-F�=2E8�/F�;G
�E(�(
E5�4E5�8E<	�<F�?E<	�F�G
�F�G
�F�G
�F<�<
G
�	G
�
G?�G/�.G?�/
G<�9G?�;G<�<G?rL�z!No module specified for execution)�file)NNNNN)T)NNF)NN)r r�importlib.machineryrW�importlib.utilr�r�__all__r^r
r&rr#r@rFrPr`�	Exceptionrkrsrrmr�rr�lenr+�print�stderrr!rr�<module>r�s�����
�
�
���������	�	�	�	�	�	�	�	��*���
�T�#�Y�Y�
� � � � � �&� � � �.
(�
(�
(�
(�
(�V�
(�
(�
(� /3�&*�)-�����4)-�,0�/3�����)4�; �; �; �; �zM�M�M�M�M�Y�M�M�M�+�+�+�+�8'+�(-�E�E�E�E�<$/�,�,�,�,�&
�
�
�4�4�4�4�n�z���
�s�3�8�}�}�q���
��1��
�C�C�C�C�C�C��H�Q�K���C�H�Q�K�(�(�(�(�(�
�r