a
    
"h                     @  s6   d dl mZ d dlZd dlZd dlZddddZdS )    )annotationsNstr)returnc                  C  s   dt d } tjt d| }tj|r2|S tjdkrHt 	d}n*tj
dkrXd}ntjdkrntjrnd	}nd
}tjt jd|d| }tj|r|S tjtjt}tj|d| }tj|r|S t|dS )zReturn the uv binary path.ZuvEXEscripts)   
   userntnt_userdarwinosx_framework_user
posix_user)schemebinN)	sysconfigget_config_varospathjoinget_pathisfilesysversion_infoZget_preferred_schemenameplatform
_frameworkdirname__file__FileNotFoundError)Zuv_exer   Zuser_schemeZpkg_roottarget_path r!   A/opt/python-3.9.21/usr/lib/python3.9/site-packages/uv/_find_uv.pyfind_uv_bin   s&    

r#   )
__future__r   r   r   r   r#   r!   r!   r!   r"   <module>   s   