HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //usr/lib/python3/dist-packages/ptyprocess/__pycache__/util.cpython-310.pyc
o

5��_�
�@s^zddlmZWney$ddlZddlZejejBdfdd�ZYnwGdd�de�ZdS)�)�whichNcs"dd�}tj���r|�|�r�SdS|durtj�dtj�}|s#dS|�tj�}tj	dkr^tj
|vr:|�dtj
�tj�dd��tj�}t�fd	d
�|D��rT�g}n
�fdd�|D�}n�g}t
�}|D](}tj�|�}||vr�|�|�|D]}	tj�||	�}
||
|�r�|
SqyqfdS)
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�|�ot�||�otj�|�S�N)�os�path�exists�access�isdir)�fn�mode�r�1/usr/lib/python3/dist-packages/ptyprocess/util.py�
_access_checks�zwhich.<locals>._access_checkN�PATH�win32r�PATHEXT�c3s"�|]}����|���VqdSr)�lower�endswith��.0�ext��cmdrr�	<genexpr>1s� zwhich.<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rs<





��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�C