
    'g
                          S SK Jr   " S S\5      rg! \ a)    S SKrS SKr\R
                  \R                  -  S4S jr N:f = f)    )whichNc                   ^  S n[         R                  R                  T 5      (       a  U" T U5      (       a  T $ gUc.  [         R                  R	                  S[         R
                  5      nU(       d  gUR                  [         R                  5      n[        R                  S:X  a  [         R                  U;  a   UR                  S[         R                  5        [         R                  R	                  SS5      R                  [         R                  5      n[        U 4S jU 5       5      (       a  T /nOU Vs/ s H  nT U-   PM
     nnOT /n[        5       nU Hu  n[         R                  R                  U5      n	X;  d  M)  UR                  U	5        U H5  n
[         R                  R!                  X5      nU" X5      (       d  M1  Us  s  $    Mw     gs  snf )	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                     [         R                  R                  U 5      =(       aA    [         R                  " X5      =(       a$    [         R                  R	                  U 5      (       + $ N)ospathexistsaccessisdir)fnmodes     1/usr/lib/python3/dist-packages/ptyprocess/util.py_access_checkwhich.<locals>._access_check   s?    GGNN2& .299R+> .GGMM"--/    NPATHwin32r   PATHEXT c              3   ~   >#    U  H2  nTR                  5       R                  UR                  5       5      v   M4     g 7fr   )lowerendswith).0extcmds     r   	<genexpr>which.<locals>.<genexpr>1   s+     H399;''		44s   :=)r   r   dirnameenvirongetdefpathsplitpathsepsysplatformcurdirinsertanysetnormcaseaddjoin)r   r   r   r   pathextfilesr   seendirnormdirthefilenames   `           r   r   r      s_   	/ 77??3S$''
<::>>&"**5Dzz"**%<<7"99$Aryy) jjnnY399"**EG
 HHHH.56gssg6 EEuCgg&&s+G?!$G77<<5D$T00#  %	   7s   9Gc                       \ rS rSrSrSrg)PtyProcessErrorF   z%Generic error class for this package. N)__name__
__module____qualname____firstlineno____doc____static_attributes__r7   r   r   r5   r5   F   s    /r   r5   )	shutilr   ImportErrorr   r$   F_OKX_OK	Exceptionr5   r7   r   r   <module>rC      sK   BH0i 0G  @ "'') <	@s    ,AA