Your IP : 3.143.239.63


Current Path : /opt/alt/python38/lib64/python3.8/__pycache__/
Upload File :
Current File : //opt/alt/python38/lib64/python3.8/__pycache__/site.cpython-38.opt-2.pyc

U

�M�fuU�@s*ddlZddlZddlZddlZddlZddlZejejgada	da
dadd�Zdd�Z
dd�Zdd	�Zd
d�Zd1dd
�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zd2dd�Zd3dd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Z d,d-�Z!ej"j#�se!�d.d/�Z$e%d0k�r&e$�dS)4�NcGsBtjj|�}ztj�|�}Wntk
r0YnX|tj�|�fS�N)�os�path�join�abspath�OSError�normcase)�paths�dir�r�)/opt/alt/python38/lib64/python3.8/site.py�makepath\sr
cCs�ttj���D]~}tt|dd�dd�dkr,qztj�|j�|_Wnt	t
tfk
rZYnXztj�|j�|_Wqt	t
tfk
r�YqXqdS)N�
__loader__�
__module__)�_frozen_importlib�_frozen_importlib_external)
�set�sys�modules�values�getattrrrr�__file__�AttributeErrorr�	TypeError�
__cached__)�mrrr�	abs_pathses�rcCsPg}t�}tjD],}t|�\}}||kr|�|�|�|�q|tjdd�<|Sr)rrrr
�append�add)�L�known_pathsr
�dircaserrr�removeduppathsus

r"c	CsVt�}tjD]D}z&tj�|�r4t|�\}}|�|�Wqtk
rNYqYqXq|Sr)rrrr�existsr
rr)�d�item�_�itemcaserrr�_init_pathinfo�s
r(c
Cs�|dkrt�}d}nd}tj�||�}zt�|�}Wntk
rJYdSXt|dd�tj@spt|dd�tj	@rtdSzt
�t
�|��}Wntk
r�YdSX|��
t
|�D]�\}}|�d�r�q�z^|�d�r�t|�Wq�|��}t||�\}	}
|
|k�r tj�|	��r tj�|	�|�|
�Wq�tk
�r�td�|d	|�tjd
�ddl}|jt���D](}|��D]}td|tjd
��qp�qdtdtjd
�Y�q�Yq�Xq�W5QRX|�r�d}|S)
NTF�st_flagsr�st_file_attributes�#)zimport zimport	z"Error processing line {:d} of {}:
�)�filez  z
Remainder of file ignored)r(rrr�lstatrr�stat�	UF_HIDDEN�FILE_ATTRIBUTE_HIDDEN�io�
TextIOWrapper�	open_code�	enumerate�
startswith�exec�rstripr
r#rrr�	Exception�print�format�stderr�	traceback�format_exception�exc_info�
splitlines)
�sitedir�namer �reset�fullname�st�f�n�liner
r!r=�recordrrr�
addpackage�sV�

�rJcCs�|dkrt�}d}nd}t|�\}}||krBtj�|�|�|�zt�|�}Wntk
rfYdSXdd�|D�}t	|�D]}t
|||�q~|r�d}|S)NTFcSs$g|]}|�d�r|�d�s|�qS)z.pth�.)�endswithr6)�.0rBrrr�
<listcomp>�s

�zaddsitedir.<locals>.<listcomp>)r(r
rrrrr�listdirr�sortedrJ)rAr rC�sitedircase�namesrBrrr�
addsitedir�s$
rScCs`tjjrdSttd�r4ttd�r4t��t��kr4dSttd�r\ttd�r\t��t��kr\dSdS)NF�getuid�geteuid�getgid�getegidT)	r�flags�no_user_site�hasattrrrUrTrWrVrrrr�check_enableusersite�s
r[cCsztj�dd�}|r|Sdd�}tjdkrBtj�d�p6d}||d�Stjdkrptjrp|dd	tjd
tjdd��S|dd�S)
N�PYTHONUSERBASEcWstj�tjj|��Sr)rr�
expanduserr)�argsrrr�joinusersz_getuserbase.<locals>.joinuser�nt�APPDATA�~�Python�darwin�Libraryz%d.%d�z.local)r�environ�getrBr�platform�
_framework�version_info)�env_baser_�baserrr�_getuserbase�s


�rncCsdtj}tjdkr,|�d|d�|d�d�StjdkrFtjrF|�d�S|�d|d�d	|d�d
�S)Nr`z\Pythonrr,z\site-packagesrdz/lib/python/site-packagesz/lib/pythonrKz/site-packages)rrkrrBrirj)�userbase�versionrrr�	_get_paths

rqcCstdkrt�atSr)�	USER_BASErnrrrr�getuserbasesrscCst�}tdkrt|�atSr)rs�	USER_SITErq)rorrr�getusersitepackages,srucCs$t�}tr tj�|�r t||�|Sr)ru�ENABLE_USER_SITErr�isdirrS)r �	user_siterrr�addusersitepackages:s
rycCs�g}t�}|dkrt}|D]�}|r||kr,q|�|�tjdkr�|�tj�|ddtj	dd�d��|�tj�|ddtj
dd�d��q|�|�|�tj�|dd��|�tj�|dd��q|S)	N�/�lib64�python�z
site-packages�libzpython%d.%drf)r�PREFIXESrr�seprrrrrprk)�prefixes�sitepackages�seen�prefixrrr�getsitepackagesHs*

��
r�cCs(t|�D]}tj�|�rt||�q|Sr)r�rrrwrS)r r�rArrr�addsitepackagesgsr�cCs4tjdkrd}nd}t�d|�t_t�d|�t_dS)N�\zCtrl-Z plus ReturnzCtrl-D (i.e. EOF)�quit�exit)rr��
_sitebuiltins�Quitter�builtinsr�r�)�eofrrr�setquitos

r�cCs�t�dtj�t_tjdd�dkr2t�dd�t_nt�dd�t_gg}}ttd�r�tj	�
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.rzLICENSE.txt�LICENSE�licensez'See https://www.python.org/psf/license/)r��_Printerrr�r�rir�rZrr�dirnamer�extendr�pardir�curdirr�)�files�dirs�hererrr�setcopyrights$�

�r�cCst��t_dSr)r��_Helperr��helprrrr�	sethelper�sr�cCsdd�}|t_dS)Ncs�ddl}zddl�ddl}Wntk
r2YdSXt�dd�}|dk	r\d|kr\��d�n
��d�z���Wntk
r�YnX���dkr�t	j
�t	j
�d�d��z��
��Wntk
r�YnX��fd	d
�}|�|�dS)Nr�__doc__��libeditzbind ^I rl_completez
tab: completerbz.python_historycs(z����Wntk
r"YnXdSr)�write_history_filerr��history�readlinerr�
write_history�szCenablerlcompleter.<locals>.register_readline.<locals>.write_history)�atexitr��rlcompleter�ImportErrorr�parse_and_bind�read_init_filer�get_current_history_lengthrrrr]�read_history_file�register)r�r��readline_docr�rr�r�register_readline�s0
�z,enablerlcompleter.<locals>.register_readline)r�__interactivehook__)r�rrr�enablerlcompleter�s	0r�c	CsHtj}tjdkr*d|kr*tjd}t_ntj}tj�tj�|��\}}tj�	|�}dt_
d}dd�tj�||�tj�||�fD�}|�rD|d}d}	t|dd	��\}
|
D]P}d
|kr�|�
d
�\}}}
|����}|
��}
|dkr�|
��}	q�|dkr�|
t_
q�W5QRX|t_t_t|tjg�|	dk�r8t�dtj�ntjgad
a|S)Nrd�__PYVENV_LAUNCHER__z
pyvenv.cfgcSsg|]}tj�|�r|�qSr)rr�isfile)rM�conffilerrrrN�s�zvenv.<locals>.<listcomp>r�truezutf-8)�encoding�=zinclude-system-site-packages�homeF)rrgrri�_base_executable�
executabler�splitrr��_homer�open�	partition�strip�lowerr��exec_prefixr�r�insertrv)r �envr��exe_dirr&�site_prefix�
conf_basename�candidate_confs�virtual_conf�system_siterFrH�key�valuerrr�venv�sB��

r�c
Cs�zBzddl}Wn0tk
r>}z|jdkr,n�W5d}~XYnXWnRtk
r�}z4tjjrltjt���ntj	�
d|jj|f�W5d}~XYnXdS)Nr�
sitecustomizez@Error in sitecustomize; set PYTHONVERBOSE for traceback:
%s: %s
)
r�r�rBr9rrX�verbose�
excepthookr?r<�write�	__class__�__name__)r��exc�errrrr�execsitecustomize	s

��r�c
Cs�zBzddl}Wn0tk
r>}z|jdkr,n�W5d}~XYnXWnRtk
r�}z4tjjrltjt���ntj	�
d|jj|f�W5d}~XYnXdS)Nr�
usercustomizez@Error in usercustomize; set PYTHONVERBOSE for traceback:
%s: %s
)
r�r�rBr9rrXr�r�r?r<r�r�r�)r�r�r�rrr�execusercustomizes

��r�cCs~tjdd�}t�}|tjkr$t�t|�}tdkr:t�at|�}t|�}t	�t
�t�tjj
sjt�t�trzt�dSr)rrr"rr�rvr[ryr�r�r�r�rX�isolatedr�r�r�)�	orig_pathr rrr�main1s"
r�cCs\d}tjdd�}|s�t�}t�}td�tjD]}td|f�q0td�td|tj�|�rbdndf�td	|tj�|�r�dndf�td
t�t�	d�g}d|kr�|�
t�d
|kr�|�
t�|�r(ttj
�|��tr�t�	d�n6tdk�rt�	d�n tdk�rt�	d�n
t�	d�n0ddl}t|�|tjdtj
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 - uses site directory is disabled by super user
          or for security reasons
     >2 - unknown error
    r,zsys.path = [z    %r,�]zUSER_BASE: %r (%s)r#z
doesn't existzUSER_SITE: %r (%s)zENABLE_USER_SITE: %rrz--user-basez--user-siteFrfr}�
)r�argvrsrur:rrrwrvr�rrrrt�pathsepr�textwrap�dedent)r�r^�	user_baserxr
�bufferr�rrr�_scriptSsD
��




r��__main__)N)N)N)&rrr�r�r2r/r�r�rrvrtrrr
rr"r(rJrSr[rnrqrsruryr�r�r�r�r�r�r�r�r�r�rX�no_siter�r�rrrr�<module>HsH	
1
 


;4
3


?>