HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux srvntsweb01 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: admntserv (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //snap/certbot/5370/lib/python3.12/site-packages/uv/__pycache__/__main__.cpython-312.pyc
�

���i���N�ddlZddlZddlmZdefd�Zdd�Zedk(re�yy)�N)�find_uv_bin�returnc���tjd�}|r|Stjjtj
d�}tjj
|�rtj
Sy)zN
    Find the virtual environment path for the current Python executable.
    �VIRTUAL_ENVz
pyvenv.cfg�)�os�getenv�path�join�sys�prefix�exists)�value�venv_markers  �{/build/snapcraft-certbot-817459ae66b3942307a8b35b87e7f45e/parts/certbot/install/lib/python3.12/site-packages/uv/__main__.py�_detect_virtualenvrsQ��
�I�I�m�$�E�����'�'�,�,�s�z�z�<�8�K�	�w�w�~�~�k�"��z�z��
�c�:�tjt��}tjj	�}t�}|r|j
d|�tj|d<tjdk(rLddl
}	|j|gtjdd�|��}tjj�ytj ||gtjdd�|��y#t$rtjd�Y�mwxYw)Nr�UV_INTERNAL__PARENT_INTERPRETER�win32r�)�env�)r�fsdecoder�environ�copyr�
setdefaultr�
executable�platform�
subprocess�run�argv�KeyboardInterrupt�exit�
returncode�execvpe)�uvr�venvr �completed_processs     r�_runr*s���	���[�]�	#�B�
�*�*�/�/�
�C���D�����}�d�+�.1�^�^�C�)�*�
�|�|�w���	� *����/B�S�X�X�a�b�\�/B��� L��	���"�-�-�.�
�
�
�2��*�S�X�X�a�b�\�*��4��!�	��H�H�Q�K�	�s�'C9�9D�D�__main__)rN)rrr'r�strrr*�__name__�rr�<module>r/s3��	�
���C��&5�2�z���F�r