+
    ÆÚjØ  ã                   ój   € R t ^ RIHt ^ RIHt ^ RIHt ^ RIt^ RIHt ^ RIH	t	 R t
R tR	 tRR
 ltR# )zCSome general file utilities used that can be used by the Cloud SDK.)Úabsolute_import)Údivision)Úunicode_literalsN)Úencoding)Ú	platformsc                 óL   € \         P                  ! \        P                  R4      # )z5Returns properly encoded system PATH variable string.ÚPATH)Úencoding_utilÚGetEncodedValueÚosÚenviron© ó    Ú‰/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/fire/console/files.pyÚ_GetSystemPathr      s   € ä	×	&Ò	&¤r§z¡z°6Ó	:Ð:r   c                ó  € \        V\        4      '       d   \        RP                  V4      4      hV FÕ  pVP	                  \
        P                  4       F¯  pVP                  R4      p\
        P                  P                  \
        P                  P                  W@4      V,           4      p\
        P                  P                  V4      '       g   K~  \
        P                  ! V\
        P                  4      '       g   K«  Vu u # 	  K×  	  R# )ai  Internal function to a find an executable.

Args:
  executable: The name of the executable to find.
  path: A list of directories to search separated by 'os.pathsep'.
  pathext: An iterable of file name extensions to use.

Returns:
  str, the path to a file on `path` with name `executable` + `p` for
    `p` in `pathext`.

Raises:
  ValueError: invalid input.
zr_FindExecutableOnPath(..., pathext='{0}') failed because pathext must be an iterable of strings, but got a string.Ú"N)Ú
isinstanceÚstrÚ
ValueErrorÚformatÚsplitr   ÚpathsepÚstripÚpathÚnormpathÚjoinÚisfileÚaccessÚX_OK)Ú
executabler   ÚpathextÚextÚ	directoryÚfulls   &&&   r   Ú_FindExecutableOnPathr%   !   s´   € ô  �œ×ÒÜ
ð !ç!'¡¨£ó2ð 2ó
 €cØ—Z‘Z¤§
¡
Ö+ˆ	à—/‘/ #Ó&€iÜ�W‰W×ÑœbŸg™gŸl™l¨9ÓAÀCÕGÓH€dä	�‰�‰˜×	Ô	¤"§)¢)¨D´"·'±'×":Ô":ØŒó ,ñ ñ 
r   c                 óH   € V \         P                  P                  8X  d   R# R# )ú.exe)r'   z.cmdz.batz.comz.ps1)Ú z.sh)r   ÚOperatingSystemÚWINDOWS)Úplatforms   &r   Ú_PlatformExecutableExtensionsr,   B   s"   € Ø”×*Ñ*×2Ñ2Ô2Ø3Ð3àÐr   c                ó°  € V'       gG   \         P                  P                  V 4      ^,          '       d   \        RP	                  V 4      4      h\         P                  P                  V 4      '       d   \        RP	                  V 4      4      hVf   \        4       pMTpVe   TM&\        \        P                  P                  4       4      p\        WV4      # )a  Searches for `executable` in the directories listed in `path` or $PATH.

Executable must not contain a directory or an extension.

Args:
  executable: The name of the executable to find.
  path: A list of directories to search separated by 'os.pathsep'.  If None
    then the system PATH is used.
  pathext: An iterable of file name extensions to use.  If None then
    platform specific extensions are used.
  allow_extensions: A boolean flag indicating whether extensions in the
    executable are allowed.

Returns:
  The path of 'executable' (possibly with a platform-specific extension) if
  found and executable, None if not found.

Raises:
  ValueError: if executable has a path or an extension, and extensions are
    not allowed, or if there's an internal error.
zWFindExecutableOnPath({0},...) failed because first argument must not have an extension.zQFindExecutableOnPath({0},...) failed because first argument must not have a path.)r   r   Úsplitextr   r   Údirnamer   r,   r   r)   ÚCurrentr%   )r    r   r!   Úallow_extensionsÚeffective_pathÚeffective_pathexts   &&&&  r   ÚFindExecutableOnPathr4   I   sÁ   € ÷0 
œbŸg™g×.Ñ.¨zÓ:¸1×=Ô=Ü
ð <ß<B¹FÀ:Ó<NóPð Pô ‡W�W‡_�_�Z× Ò Ü
ð 6ß6<±f¸ZÓ6HóJð Jð 
‚\Ü#Ó%�Nà€NØ")Ò"5‘wÜ9Ü$×4Ñ4×<Ñ<Ó>ó@ð ô 
˜zØ0ó
2ð 2r   )NNF)Ú__doc__Ú
__future__r   r   r   r   Úfire.consoler   r	   r   r   r%   r,   r4   r   r   r   Ú<module>r8      s2   ðñ  Jå &Ý Ý 'ã 	å 2Ý "ò;ò
òBö)2r   