%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/ptyprocess/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/ptyprocess/__pycache__/util.cpython-312.pyc

�

�.�c�
���	ddlmZGd�de�Zy#e$r(ddlZddlZej
ejzdfd�ZY�8wxYw)�)�whichNc�h��d�}tjj��r|�|�r�Sy|�.tjj	dtj
�}|sy|j
tj�}tjdk(r�tj|vr |jdtj�tjj	dd�j
tj�}t�fd�|D��r�g}n|D�cgc]}�|z��	}}n�g}t�}|D]m}tjj|�}	|	|vs�'|j|	�|D]1}
tjj!||
�}|||�s�-|ccS�oycc}w)	aSGiven a command, mode, and a PATH string, return the path which
        conforms to the given mode on the PATH, or None if there is no such
        file.
    
        `mode` defaults to os.F_OK | os.X_OK. `path` defaults to the result
        of os.environ.get("PATH"), or can be overridden with a custom search
        path.
    
        c��tjj|�xr8tj||�xr tjj	|�S�N)�os�path�exists�access�isdir)�fn�modes  �1/usr/lib/python3/dist-packages/ptyprocess/util.py�
_access_checkzwhich.<locals>._access_checksA���G�G�N�N�2�&�.�2�9�9�R��+>�.��G�G�M�M�"�-�-�
/�N�PATH�win32r�PATHEXT�c3�x�K�|]1}�j�j|j�����3y�wr)�lower�endswith)�.0�ext�cmds  �r�	<genexpr>zwhich.<locals>.<genexpr>1s(�����H��3�9�9�;�'�'��	�	��4�H�s�7:)rr�dirname�environ�get�defpath�split�pathsep�sys�platform�curdir�insert�any�set�normcase�add�join)rr
rr�pathext�filesr�seen�dir�normdir�thefile�names`           rrrs`���	/��7�7�?�?�3���S�$�'��
���<��:�:�>�>�&�"�*�*�5�D����z�z�"�*�*�%���<�<�7�"��9�9��$����A�r�y�y�)��j�j�n�n�Y��3�9�9�"�*�*�E�G�
�H��H�H����.5�6�s��s��6��6��E�E��u���	$�C��g�g�&�&�s�+�G��d�?�����!�$�$�G��7�7�<�<��W�5�D�$�T�4�0�#��$�		$���7s� F/c��eZdZdZy)�PtyProcessErrorz%Generic error class for this package.N)�__name__�
__module__�__qualname__�__doc__�rrr3r3Fs��/rr3)	�shutilr�ImportErrorrr"�F_OK�X_OK�	Exceptionr3r8rr�<module>r>sK��B��H0�i�0��G�@�����"�'�'�)��<�	@�s��*A�A

Zerion Mini Shell 1.0