| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/xdg/__pycache__/ |
Upload File : |
�
�u�c�
� � � d dl Z e j d dk Zerd� Znd� Z d dlmZ dS # e$ r d dlZej ej z dfd�ZY dS w xY w)� N� c � � | S �N� ��ss �*/usr/lib/python3/dist-packages/xdg/util.py�ur
s � ��� c �, � | � d� � S )Nzutf-8)�decoder s r r
r
s � ��x�x�� � � r )�whichc �Z � � d� }t j � � � � r |� |� � r� S dS |p)t j � dt j � � � t j � � }t j dk r�t j
|vr |� dt j
� � t j � dd� � � t j � � }t � fd�|D � � � � r� g}n� fd �|D � � }n� g}t � � }|D ]q}t j � |� � }||vrL|� |� � |D ]4} t j � || � � }
||
|� � r|
c c S �5�rdS )
aK 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 � � t j � | � � o4t j | |� � ot j � | � � S r )�os�path�exists�access�isdir)�fn�modes r �
_access_checkzwhich.<locals>._access_check sD � ��G�N�N�2�&�&� .�2�9�R��+>�+>� .��G�M�M�"�-�-�-�
/r N�PATH�win32r �PATHEXT� c 3 � �K � | ]=}�� � � � |� � � � � V � �>d S r )�lower�endswith��.0�ext�cmds �r � <genexpr>zwhich.<locals>.<genexpr>9 sA �� � � �H�H��3�9�9�;�;�'�'�� � ���4�4�H�H�H�H�H�Hr c � �� g | ]}�|z ��S r r r s �r �
<listcomp>zwhich.<locals>.<listcomp><