+
     h
  c                   s     ^ RI Ht  ! R R]4      tR#   ] d.    ^ RIt^ RIt]P
                  ]P                  ,          R3R lt L@i ; i)i    )whichNc                s  a  R p\         P                  P                  S 4      '       d   V! S V4      '       d   S # R# Vf/   \         P                  P	                  R\         P
                  4      pV'       g   R# VP                  \         P                  4      p\        P                  R8X  d   \         P                  V9   g!   VP                  ^ \         P                  4       \         P                  P	                  RR4      P                  \         P                  4      p\        ;QJ d    V 3R lV 4       F  '       g   K   RM	  R	M! V 3R lV 4       4      '       d   S .pMV Uu. uF  pS V,           NK  	  ppMS .p\        4       pV Fw  p\         P                  P                  V4      p	W9   d   K*  VP                  V	4       V F6  p
\         P                  P!                  W4      pV! W4      '       g   K2  Vu u # 	  Ky  	  R# u upi )
a  Given 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                 s    \         P                  P                  V 4      ;'       dC    \         P                  ! W4      ;'       d%    \         P                  P	                  V 4      '       * # N)ospathZexistsZaccessZisdir)Zfnmodes   &&4/usr/lib/python3.14/site-packages/ptyprocess/util.py_access_checkZwhich.<locals>._access_check   sI    GGNN2& . .299R+> . .GGMM"--/    NZPATHZwin32ZPATHEXTZ c              3   s~   <"   T F2  pSP                  4       P                  VP                  4       4      x  K4  	  R # 5ir   )ZlowerZendswith)Z.0extcmds   & r   Z	<genexpr>Zwhich.<locals>.<genexpr>1   s+     H399;''		44s   :=TF)r   r   ZdirnameZenvironZgetZdefpathZsplitZpathsepsysZplatformZcurdirZinsertZanyZsetZnormcaseZaddZjoin)r	   r   r   r   ZpathextZfilesr   ZseenZdirZnormdirZthefileZnames   f&&         r   r    r       sq   	/ 77??3S$''
<::>>&"**5Dzz"**%<<7"99$Aryy) jjnnY399"**EG
 sHHsssHHHH.56gssg6 EEuCgg&&s+G?!$G77<<5D$T00#  %	   7s   'Hc                   s    ] tR t^FtRtRtR# )PtyProcessErrorz%Generic error class for this package. N)Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__Z__static_attributes__r   r   r   r   r   F   s    /r   r   )	Zshutilr    ZImportErrorr   r
   ZF_OKZX_OKZ	Exceptionr   r   r   r   <module>r      sK   BH0i 0G  @ "'') <	@s    1A	A	