U
    +|jÆ  ã                   @   s�   d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZ e 	d¡Z
e d¡Zdd„ Zdd	„ Zze ¡ ZW n ek
rŠ   ejZY nX dS )
é    N)Úappdirs)Úrunning_under_virtualenvÚpipÚpurelibc                   C   s   dj tjŽ S )ze
    Return the major-minor version of the current Python as a string, e.g.
    "3.7" or "3.10".
    z{}.{})ÚformatÚsysÚversion_info© r	   r	   údC:\Users\snmko\Desktop\web_content\django_cbt\venv\Lib\site-packages\pip/_internal/locations/base.pyÚget_major_minor_version   s    r   c                  C   sZ   t ƒ rtj tjd¡} n6ztj t ¡ d¡} W n tk
rL   t d¡ Y nX tj 	| ¡S )NÚsrcz=The folder you are executing pip from can no longer be found.)
r   ÚosÚpathÚjoinr   ÚprefixÚgetcwdÚOSErrorÚexitÚabspath)Ú
src_prefixr	   r	   r
   Úget_src_prefix   s    r   )r   Úsiter   Ú	sysconfigÚtypingZpip._internal.utilsr   Úpip._internal.utils.virtualenvr   Úuser_cache_dirÚUSER_CACHE_DIRÚget_pathÚsite_packagesr   r   ÚgetusersitepackagesÚ	user_siteÚAttributeErrorÚ	USER_SITEr	   r	   r	   r
   Ú<module>   s   

	