HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/cppython/lib/python3.8/site-packages/ptyprocess/__pycache__/util.cpython-38.pyc
U

ID�g�
�@s`zddlmZWn:ek
rJddlZddlZejejBdfdd�ZYnXGdd�de�ZdS)�)�whichNcs"dd�}tj���r&|�|�r"�SdS|dkr>tj�dtj�}|sFdS|�tj�}tj	dkr�tj
|krt|�dtj
�tj�dd��tj�}t�fd	d
�|D��r��g}q‡fdd�|D�}n�g}t
�}|D]P}tj�|�}||kr�|�|�|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�</opt/cppython/lib/python3.8/site-packages/ptyprocess/util.py�
_access_checks�zwhich.<locals>._access_checkN�PATH�win32r�PATHEXT�c3s |]}����|���VqdSr)�lower�endswith��.0�ext��cmdrr�	<genexpr>1szwhich.<locals>.<genexpr>csg|]}�|�qSrrrrrr�
<listcomp>4szwhich.<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r1Fsr1)	�shutilr�ImportErrorrr!�F_OK�X_OK�	Exceptionr1rrrr�<module>s
?