%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/python/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/python/__pycache__/procutils.cpython-312.pyc

�

Ϫ�f[��.�dZddlZejfd�Zy)z'
Utilities for dealing with processes.
�Nc	�l�g}ttdtjj	dd�jtj���}tjj	dd�}|�gStjj	dd�jtj�D]}}tjj||�}tj||�r|j|�|D]/}||z}tj||�s�|j|��1�|S)a�
    Search PATH for executable files with the given name.

    On newer versions of MS-Windows, the PATHEXT environment variable will be
    set to the list of file extensions for files considered executable. This
    will normally include things like ".EXE". This function will also find files
    with the given name ending with any of these extensions.

    On MS-Windows the only flag that has any meaning is os.F_OK. Any other
    flags will be ignored.

    @type name: C{str}
    @param name: The name for which to search.

    @type flags: C{int}
    @param flags: Arguments to L{os.access}.

    @rtype: C{list}
    @return: A list of the full paths to files found, in the order in which they
    were found.
    N�PATHEXT��PATH)�list�filter�os�environ�get�split�pathsep�path�join�access�append)�name�flags�result�extsr�p�e�pexts        �:/usr/lib/python3/dist-packages/twisted/python/procutils.py�whichrs���,�F���t�R�Z�Z�^�^�I�r�:�@�@����L�M�N�D�
�:�:�>�>�&�$�'�D��|��	�
�Z�Z�^�^�F�B�
'�
-�
-�b�j�j�
9�$���G�G�L�L��D�!��
�9�9�Q����M�M�!���	$�A��q�5�D��y�y��u�%��
�
�d�#�	$�	$��M�)�__doc__r	�X_OKr�rr�<module>rs���

��g�g�&r

Zerion Mini Shell 1.0