HEX
Server: Apache
System: Linux nc-ph-4101.simplemoneygoals.com 5.14.0-503.21.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jan 12 09:45:05 EST 2025 x86_64
User: dailygoldindex (1004)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //lib/python3.9/site-packages/ptyprocess/__pycache__/util.cpython-39.pyc
a

��,[�
�@s^zddlmZWn8eyHddlZddlZejejBdfdd�ZYn0Gdd�de�ZdS)�)�whichNcs"dd�}tj���r&|�|�r"�SdS|dur>tj�dtj�}|sFdS|�tj�}tj	dkr�tj
|vrt|�dtj
�tj�dd��tj�}t�fd	d
�|D��r��g}q‡fdd�|D�}n�g}t
�}|D]P}tj�|�}||vr�|�|�|D](}	tj�||	�}
||
|�r�|
Sq�q�dS)
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.
    
        cSs&tj�|�o$t�||�o$tj�|�S�N)�os�path�exists�access�isdir)�fn�mode�r�3/usr/lib/python3.9/site-packages/ptyprocess/util.py�
_access_checks�zwhich.<locals>._access_checkN�PATH�win32r�PATHEXT�c3s |]}����|���VqdSr)�lower�endswith��.0�ext��cmdrr�	<genexpr>1�zwhich.<locals>.<genexpr>csg|]}�|�qSrrrrrr�
<listcomp>4rzwhich.<locals>.<listcomp>)rr�dirname�environ�get�defpath�split�pathsep�sys�platform�curdir�insert�any�set�normcase�add�join)rr
rr
�pathext�files�seen�dir�normdir�thefile�namerrrrs8





rc@seZdZdZdS)�PtyProcessErrorz%Generic error class for this package.N)�__name__�
__module__�__qualname__�__doc__rrrrr2Fsr2)	�shutilr�ImportErrorrr"�F_OK�X_OK�	Exceptionr2rrrr�<module>s
?