Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python311/lib64/python3.11/distutils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib64/python3.11/distutils/__pycache__/spawn.cpython-311.opt-1.pyc
�

�,d4��x�dZddlZddlZddlZddlmZmZddlmZddl	m
Z
ejdkrdada
d
d�Zdd	�ZdS)z�distutils.spawn

Provides the 'spawn()' function, a front-end to various platform-
specific functions for launching another program in a sub-process.
Also provides the 'find_executable()' to search the path for a given
executable name.
�N)�DistutilsPlatformError�DistutilsExecError)�DEBUG)�log�darwin�c��t|��}tjd�|����|rdS|rt	|d��}|�||d<d}t
jdkr�t�Hddlm	}|�
d��pdatr$d�t�d	��D��atr�tj�dt��}d
�|�d	��D��}tdd�dd
gkr-|dd�dd
gkrd|�dt�d�}	t!|	���t#tj|���}	t%j||���}
|
���|
j}nB#t,$r5}t.s|d}t1d|�d|jd����|�d}~wwxYw|r$t.s|d}t1d|�d|�����dS)a�Run another program, specified as a command list 'cmd', in a new process.

    'cmd' is just the argument list for the new process, ie.
    cmd[0] is the program to run and cmd[1:] are the rest of its arguments.
    There is no way to run a program with a name different from that of its
    executable.

    If 'search_path' is true (the default), the system's executable
    search path will be used to find the program; otherwise, cmd[0]
    must be the exact path to the executable.  If 'dry_run' is true,
    the command will not actually be run.

    Raise DistutilsExecError if running the program fails in any way; just
    return on success.
    � Nrr)�	sysconfig�MACOSX_DEPLOYMENT_TARGET�c�,�g|]}t|����S���int��.0�xs  �6/opt/alt/python311/lib64/python3.11/distutils/spawn.py�
<listcomp>zspawn.<locals>.<listcomp><s��$L�$L�$L��S��V�V�$L�$L�$L��.c�,�g|]}t|����Srrrs  rrzspawn.<locals>.<listcomp>Ds��F�F�F�1��A���F�F�Fr��
�z)$MACOSX_DEPLOYMENT_TARGET mismatch: now "z" but "z)" during configure;must use 10.3 or later)r)�envzcommand z	 failed: ���z failed with exit code )�listr�info�join�find_executable�sys�platform�_cfg_target�	distutilsr�get_config_var�split�_cfg_target_split�os�environ�getr�dict�
subprocess�Popen�wait�
returncode�OSErrorrr�args)
�cmd�search_path�verbose�dry_run�
executablerr�
cur_target�cur_target_split�my_msg�proc�exitcode�excs
             r�spawnr?sn��$�s�)�)�C��H�S�X�X�c�]�]��������� �$�S��V�,�,�
��!��C��F�
�C�
�|�x�����+�+�+�+�+�+�#�2�2�"<�>�>�D�AC�
��
M�$L�$L�[�5F�5F�s�5K�5K�$L�$L�$L�!��	<�����(B�K�P�P�J�F�F�
�0@�0@��0E�0E�F�F�F�� ��!��$��Q��/�/�4D�R�a�R�4H�B�PQ�7�4R�4R�4R�$.�:�:�{�{�{�<��-�V�4�4�4��r�z�0:�<�<�<�C�D�����-�-�-���	�	�����?�����D�D�D��	��a�&�C� � �'*�s�s�C�H�R�L�L�9�;�;�@C�	D�����D�����G��	��a�&�C� � �7:�s�s�H�H�E�G�G�	G�G�Gs�#1F�
G�0G�Gc�R�tj�|��\}}tjdkr|dkr|dz}tj�|��r|S|�[tj�dd��}|�9	tjd��}n##ttf$rtj}YnwxYw|sdS|�tj
��}|D]E}tj�||��}tj�|��r|cS�FdS)z�Tries to find 'executable' in the directories listed in 'path'.

    A string listing directories separated by 'os.pathsep'; defaults to
    os.environ['PATH'].  Returns the complete filename or None if not found.
    �win32z.exeN�PATH�CS_PATH)r*�path�splitextr#r$�isfiler+r,�confstr�AttributeError�
ValueError�defpathr(�pathsepr!)r8rD�_�ext�paths�p�fs       rr"r"_s)���W�
�
�j�
)�
)�F�A�s������c�V�m�m��&�(�
�	�w�~�~�j�!�!�����|��z�~�~�f�d�+�+���<�
"��z�)�,�,����"�J�/�
"�
"�
"��z����
"�������t��J�J�r�z�"�"�E�
�����G�L�L��J�'�'��
�7�>�>�!���	��H�H�H�	��4s�B�B9�8B9)rrr)N)�__doc__r#r*r.�distutils.errorsrr�distutils.debugrr&rr$r%r)r?r"rrr�<module>rTs������
�
�
�	�	�	�	�����G�G�G�G�G�G�G�G�!�!�!�!�!�!��������<�8����K���EG�EG�EG�EG�P"�"�"�"�"�"r

ZeroDay Forums Mini