AlkantarClanX12

Your IP : 18.119.142.210


Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/site.cpython-310.opt-2.pyc

o

6��f�Y�@s4	ddlZddlZddlZddlZddlZddlZejejgada	da
dadd�Zdd�Z
dd�Zdd	�Zd
d�Zdd
�Zd3dd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zd3dd�Zd3dd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Z d,d-�Z!d.d/�Z"ej#j$s�e"�d0d1�Z%e&d2kr�e%�dSdS)4�NcCstjjr
t|tjd�dSdS)N��file)�sys�flags�verbose�print�stderr)�message�r
�+/opt/alt/python310/lib64/python3.10/site.py�_trace\s�rcGs@tjj|�}ztj�|�}Wn	tyYnw|tj�|�fS�N)�os�path�join�abspath�OSError�normcase)�paths�dirr
r
r�makepathas�rcCs�	ttj���D]W}d}z|jj}Wnty,z|jjj}Wn	ty)YnwYnw|dvr2qz
t	j
�|j�|_Wntt
tfyHYnwz
t	j
�|j�|_Wqtt
tfy_YqwdS)N>�_frozen_importlib_external�_frozen_importlib)�setr�modules�values�
__loader__�
__module__�AttributeError�__spec__�loaderrrr�__file__r�	TypeError�
__cached__)�m�
loader_moduler
r
r�	abs_pathsjs4������r&cCsR	g}t�}tjD]}t|�\}}||vr|�|�|�|�q	|tjdd�<|Sr
)rrrr�append�add)�L�known_pathsr�dircaser
r
r�removeduppaths�s


�r,c	CsP	t�}tjD]}ztj�|�rt|�\}}|�|�Wqty%Yqw|Sr
)rrrr�existsrr(r")�d�item�_�itemcaser
r
r�_init_pathinfo�s

��r2c
Cs�	|durt�}d}nd}tj�||�}zt�|�}Wn
ty%YdSwt|dd�tj@s8t|dd�tj	@rAt
d|���dSt
d|���ztjt�
|�dd	�}Wn
ty^YdSw|��t|�D]z\}}|�d
�rpqf|��dkrwqfz-|�d�r�t|�Wqf|��}t||�\}	}
|
|vr�tj�|	�r�tj�|	�|�|
�Wqfty�td
�|d|�tjd�ddl}|jt���D]}|��D]}td|tjd�q�q�tdtjd�YnwWd�n1s�wY|r�d}|S)NTF�st_flagsr�st_file_attributeszSkipping hidden .pth file: zProcessing .pth file: �locale��encoding�#�)zimport zimport	z"Error processing line {:d} of {}:
�rz  z
Remainder of file ignored) r2rrr�lstatr�getattr�stat�	UF_HIDDEN�FILE_ATTRIBUTE_HIDDENr�io�
TextIOWrapper�	open_code�	enumerate�
startswith�strip�exec�rstriprr-rr'r(�	Exceptionr�formatr�	traceback�format_exception�exc_info�
splitlines)
�sitedir�namer*�reset�fullname�st�f�n�linerr+rJ�recordr
r
r�
addpackage�sn���


������rWcCs�	td|���|durt�}d}nd}t|�\}}||vr)tj�|�|�|�zt�|�}Wn
t	y:YdSwdd�|D�}t
|�D]}t|||�qF|rSd}|S)NzAdding directory: TFcSs$g|]}|�d�r|�d�s|�qS)z.pth�.)�endswithrD)�.0rOr
r
r�
<listcomp>�s
�
�zaddsitedir.<locals>.<listcomp>)rr2rrrr'r(r�listdirr�sortedrW)rNr*rP�sitedircase�namesrOr
r
r�
addsitedir�s*
�r`cCsb	tjjrdSttd�rttd�rt��t��krdSttd�r/ttd�r/t��t��kr/dSdS)NF�getuid�geteuid�getgid�getegidT)	rr�no_user_site�hasattrrrbrardrcr
r
r
r�check_enableusersite�s	rgcCs�tj�dd�}|r|StjdkrdSdd�}tjdkr(tj�d�p"d}||d�Stjd	kr?tjr?|dd
tjdtjdd��S|dd
�S)N�PYTHONUSERBASE�vxworkscWstj�tjj|��Sr
)rr�
expanduserr)�argsr
r
r�joinusersz_getuserbase.<locals>.joinuser�nt�APPDATA�~�Python�darwin�Libraryz%d.%d�z.local)r�environ�getr�platformrO�
_framework�version_info)�env_baserl�baser
r
r�_getuserbases



�
r{cCsftj}tjdkrtj�dd�}|�d|�d�Stjdkr$tjr$|�d�S|�d|d	�d|d
�d�S)NrmrXr9z\Pythonz\site-packagesrqz/lib/python/site-packagesz/lib/pythonrr:z/site-packages)rrxrrO�winver�replacervrw)�userbase�version�	ver_nodotr
r
r�	_get_path*s

r�cCs	tdurt�atSr
)�	USER_BASEr{r
r
r
r�getuserbase7sr�cCs,	t�}tdur|durdatSt|�atS)NF)r��	USER_SITE�ENABLE_USER_SITEr�)r~r
r
r�getusersitepackagesDs�r�cCs.	td�t�}trtj�|�rt||�|S)NzProcessing user site-packages)rr�r�rr�isdirr`)r*�	user_siter
r
r�addusersitepackagesUs
r�c
Cs�	g}t�}|durt}|D]S}|r||vrq|�|�tjg}tjdkr*|�d�tjdkrJ|D]}tj�	||dtj
dd�d�}|�|�q1q|�|�|D]}tj�	||d�}|�|�qQq|S)N�lib�/zpython%d.%drsz
site-packages)r�PREFIXESr(r�
platlibdirr'r�seprrrx)�prefixes�sitepackages�seen�prefix�libdirs�libdirrr
r
r�getsitepackagesds4




��
�r�cCs2	td�t|�D]
}tj�|�rt||�q	|S)NzProcessing global site-packages)rr�rrr�r`)r*r�rNr
r
r�addsitepackages�s
�r�cCs6	tjdkr	d}nd}t�d|�t_t�d|�t_dS)N�\zCtrl-Z plus ReturnzCtrl-D (i.e. EOF)�quit�exit)rr��
_sitebuiltins�Quitter�builtinsr�r�)�eofr
r
r�setquit�s
r�cCs�	t�dtj�t_tjdd�dkrt�dd�t_nt�dd�t_gg}}ttd�rHtj	�
tj�}|�dd	g�|�tj	�
|tj�|tjg�t�d
d||�t_dS)N�	copyright��java�creditsz?Jython is maintained by the Jython developers (www.jython.org).z�    Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
    for supporting Python development.  See www.python.org for more information.r!zLICENSE.txt�LICENSE�licensez'See https://www.python.org/psf/license/)r��_Printerrr�r�rvr�rfrr�dirnamer!�extendr�pardir�curdirr�)�files�dirs�herer
r
r�setcopyright�s$�


�r�cCst��t_dSr
)r��_Helperr��helpr
r
r
r�	sethelper�sr�cCs	dd�}|t_dS)Ncs�ddl}z
ddl�ddl}Wn
tyYdSwt�dd�}|dur-d|vr-��d�n��d�z���Wn	tyAYnw���dkrrt	j
�t	j
�d�d��z��
��Wn	tycYnw��fd	d
�}|�|�dSdS)Nr�__doc__r9�libeditzbind ^I rl_completez
tab: completeroz.python_historycs&z����WdStyYdSwr
)�write_history_filerr
��history�readliner
r�
write_history�s
�zCenablerlcompleter.<locals>.register_readline.<locals>.write_history)�atexitr��rlcompleter�ImportErrorr<�parse_and_bind�read_init_filer�get_current_history_lengthrrrrj�read_history_file�register)r�r��readline_docr�r
r�r�register_readline�s8�
����z,enablerlcompleter.<locals>.register_readline)r�__interactivehook__)r�r
r
r�enablerlcompleter�s
0r�cCsZtj}tjdkrd|vrtjd}t_ntj}tj�tj�|��\}}tj�	|�}dt_
d}dd�tj�||�tj�||�fD�}|r�|d}d}	t|dd	��3}
|
D](}d
|vr{|�
d
�\}}}
|����}|
��}
|dkrt|
��}	qS|dkr{|
t_
qSWd�n1s�wY|t_t_t|tjg�|	dkr�t�dtj�|Stjgad
a|S)Nrq�__PYVENV_LAUNCHER__z
pyvenv.cfgcSsg|]
}tj�|�r|�qSr
)rr�isfile)rZ�conffiler
r
rr[s
��zvenv.<locals>.<listcomp>r�truezutf-8r6�=zinclude-system-site-packages�homeF)rrtrrv�_base_executable�
executabler�splitrr��_homer�open�	partitionrE�lowerr��exec_prefixr�r��insertr�)r*�envr��exe_dirr0�site_prefix�
conf_basename�candidate_confs�virtual_conf�system_siterSrU�key�valuer
r
r�venv�sJ��
����r�c
C�	z$zddl}WWdSty%}z|jdkrn�WYd}~WdSd}~wwtyW}z&tjjr9tjt���ntj	�
d|jj|f�WYd}~dSWYd}~dSd}~ww)Nr�
sitecustomizez@Error in sitecustomize; set PYTHONVERBOSE for traceback:
%s: %s
)
r�r�rOrHrrr�
excepthookrLr�write�	__class__�__name__)r��exc�errr
r
r�execsitecustomize+�,
���
�����r�c
Cr�)Nr�
usercustomizez@Error in usercustomize; set PYTHONVERBOSE for traceback:
%s: %s
)
r�r�rOrHrrrr�rLrr�r�r�)r�r�r�r
r
r�execusercustomize?r�r�cCs�	tjdd�}t�}|tjkrt�t|�}tdurt�at|�}t|�}t	�t
�t�tjj
s6t�t�tr@t�dSdSr
)rrr,r&r�r�rgr�r�r�r�r�r�isolatedr�r�r�)�	orig_pathr*r
r
r�mainSs&

�r�cCs\d}tjdd�}|sPt�}t�}td�tjD]	}td|f�qtd�dd�}td|�d	||��d
��td|�d	||��d
��tdt���t�d
�g}d|vr[|�t	�d|vrd|�t
�|r�ttj�
|��trwt�d
�dStdur�t�d�dStdur�t�d�dSt�d�dSd
dl}t|�|tjd
tjf��t�d�dS)Na�    %s [--user-base] [--user-site]

    Without arguments print some useful information
    With arguments print the value of USER_BASE and/or USER_SITE separated
    by '%s'.

    Exit codes with --user-base or --user-site:
      0 - user site directory is enabled
      1 - user site directory is disabled by user
      2 - user site directory is disabled by super user
          or for security reasons
     >2 - unknown error
    r:zsys.path = [z    %r,�]cSs|durtj�|�rdSdS)Nr-z
doesn't exist)rrr�)rr
r
rr-�sz_script.<locals>.existszUSER_BASE: z (�)zUSER_SITE: zENABLE_USER_SITE: rz--user-basez--user-siteFrs��
)r�argvr�r�rrr�r�r'r�r�r�pathsepr�textwrap�dedent)r�rk�	user_baser�rr-�bufferr�r
r
r�_scriptus>



r��__main__r
)'rrr�r�r@r=r�r�r�r�r�r�rrr&r,r2rWr`rgr{r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�no_siter�r�r
r
r
r�<module>sPG	
7 



$	;46
�