Hacked By AnonymousFox

Current Path : /opt/alt/python37/lib64/python3.7/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/__pycache__/site.cpython-37.opt-2.pyc

B

~ fGT�@sddlZddlZddlZddlZejejgadadada	dd�Z
dd�Zdd�Zdd	�Z
d
d�Zd1dd
�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zd2dd�Zd3dd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zd,d-�Zej j!�s�e�d.d/�Z"e#d0k�re"�dS)4�NcGsBtjj|�}ytj�|�}Wntk
r0YnX|tj�|�fS)N)�os�path�join�abspath�OSError�normcase)�paths�dir�r
�)/opt/alt/python37/lib64/python3.7/site.py�makepathZsrcCs�x�ttj���D]~}tt|dd�dd�dkr.qytj�|j�|_Wnt	t
tfk
r\YnXytj�|j�|_Wqt	t
tfk
r�YqXqWdS)N�
__loader__�
__module__)�_frozen_importlib�_frozen_importlib_external)
�set�sys�modules�values�getattrrrr�__file__�AttributeErrorr�	TypeError�
__cached__)�mr
r
r�	abs_pathscsrcCsTg}t�}x6tjD],}t|�\}}||kr|�|�|�|�qW|tjdd�<|S)N)rrrr�append�add)�L�known_pathsr	�dircaser
r
r�removeduppathsss
r!c	CsXt�}xLtjD]B}y&tj�|�r6t|�\}}|�|�Wqtk
rNwYqXqW|S)N)rrrr�existsrrr)�d�item�_�itemcaser
r
r�_init_pathinfo�sr'cCsp|dkrt�}d}nd}tj�||�}yt|d�}Wntk
rHdSX|���xt|�D]�\}}|�d�rrq^yX|�d�r�t|�w^|�	�}t
||�\}}	|	|kr�tj�|�r�tj�
|�|�|	�Wq^tk
�rRtd�|d|�tjd�d	dl}
x>|
jt���D],}x$|��D]}td
|tjd��qW�qWtdtjd�PYq^Xq^WWdQRX|�rld}|S)NTF�r�#)zimport zimport	z"Error processing line {:d} of {}:
�)�filerz  z
Remainder of file ignored)r'rrr�openr�	enumerate�
startswith�exec�rstriprr"rrr�	Exception�print�format�stderr�	traceback�format_exception�exc_info�
splitlines)�sitedir�namer�reset�fullname�f�n�liner	r r5�recordr
r
r�
addpackage�sD


rAcCs�|dkrt�}d}nd}t|�\}}||krBtj�|�|�|�yt�|�}Wntk
rddSXdd�|D�}xt	|�D]}t
|||�q~W|r�d}|S)NTFcSsg|]}|�d�r|�qS)z.pth)�endswith)�.0r:r
r
r�
<listcomp>�szaddsitedir.<locals>.<listcomp>)r'rrrrrr�listdirr�sortedrA)r9rr;�sitedircase�namesr:r
r
r�
addsitedir�s$
rIcCs`tjjrdSttd�r4ttd�r4t��t��kr4dSttd�r\ttd�r\t��t��kr\dSdS)NF�getuid�geteuid�getgid�getegidT)	r�flags�no_user_site�hasattrrrKrJrMrLr
r
r
r�check_enableusersite�s
rQcCsztj�dd�}|r|Sdd�}tjdkrBtj�d�p6d}||d�Stjdkrptjrp|dd	tjd
tjdd��S|dd�S)
N�PYTHONUSERBASEcWstj�tjj|��S)N)rr�
expanduserr)�argsr
r
r�joinuser�sz_getuserbase.<locals>.joinuser�nt�APPDATA�~�Python�darwin�Libraryz%d.%d�z.local)r�environ�getr:r�platform�
_framework�version_info)�env_baserU�baser
r
r�_getuserbase�s


rdcCsdtj}tjdkr,|�d|d�|d�d�StjdkrFtjrF|�d�S|�d|d�d	|d�d
�S)NrVz\Pythonrr*z\site-packagesrZz/lib/python/site-packagesz/lib/python�.z/site-packages)rrarr:r_r`)�userbase�versionr
r
r�	_get_path	s

rhcCstdkrt�atS)N)�	USER_BASErdr
r
r
r�getuserbasesrjcCst�}tdkrt|�atS)N)rj�	USER_SITErh)rfr
r
r�getusersitepackages"srlcCs$t�}tr tj�|�r t||�|S)N)rl�ENABLE_USER_SITErr�isdirrI)r�	user_siter
r
r�addusersitepackages0s
rpcCs�g}t�}|dkrt}x�|D]�}|r||kr.q|�|�tjdkr�|�tj�|ddtj	dd�d��|�tj�|ddtj
dd�d��q|�|�|�tj�|dd��|�tj�|dd��qW|S)	N�/�lib64�python�z
site-packages�libzpython%d.%dr\)r�PREFIXESrr�seprrrrrgra)�prefixes�sitepackages�seen�prefixr
r
r�getsitepackages>s&




r|cCs,x&t|�D]}tj�|�r
t||�q
W|S)N)r|rrrnrI)rrxr9r
r
r�addsitepackages]sr}cCs4tjdkrd}nd}t�d|�t_t�d|�t_dS)N�\zCtrl-Z plus ReturnzCtrl-D (i.e. EOF)�quit�exit)rrw�
_sitebuiltins�Quitter�builtinsrr�)�eofr
r
r�setquites

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�r_r�rPrr�dirnamer�extendr�pardir�curdirr�)�files�dirs�herer
r
r�setcopyrightus 


r�cCst��t_dS)N)r��_Helperr��helpr
r
r
r�	sethelper�sr�cCsdd�}|t_dS)Ncs�ddl}yddl�ddl}Wntk
r0dSXt�dd�}|dk	rZd|krZ��d�n
��d�y���Wntk
r�YnX���dkr�t	j
�t	j
�d�d��y��
��Wntk
r�YnX��fd	d
�}|�|�dS)Nr�__doc__��libeditzbind ^I rl_completez
tab: completerXz.python_historyc	s,y����Wnttfk
r&YnXdS)N)�write_history_file�FileNotFoundError�PermissionErrorr
)�history�readliner
r�
write_history�szCenablerlcompleter.<locals>.register_readline.<locals>.write_history)�atexitr��rlcompleter�ImportErrorr�parse_and_bind�read_init_filer�get_current_history_lengthrrrrS�read_history_file�register)r�r��readline_docr�r
)r�r�r�register_readline�s.
z,enablerlcompleter.<locals>.register_readline)r�__interactivehook__)r�r
r
r�enablerlcompleter�s	0r�c	CsLtj}tjdkr*d|kr*tjd}t_ntj}tj�tj�|��\}}tj�	|�}dt_
d}dd�tj�||�tj�||�fD�}|�rH|d}d}	t|dd	��`}
xX|
D]P}d
|kr�|�
d
�\}}}
|����}|
��}
|dkr�|
��}	q�|dkr�|
t_
q�WWdQRX|t_t_t|tjg�|	dk�r<t�dtj�ntjgad
a|S)NrZ�__PYVENV_LAUNCHER__z
pyvenv.cfgcSsg|]}tj�|�r|�qSr
)rr�isfile)rC�conffiler
r
rrD�szvenv.<locals>.<listcomp>r�truezutf-8)�encoding�=zinclude-system-site-packages�homeF)rr]rr_�_base_executable�
executabler�splitrr��_homerr,�	partition�strip�lowerr{�exec_prefixr}rv�insertrm)r�envr��exe_dirr%�site_prefix�
conf_basename�candidate_confs�virtual_conf�system_siter=r?�key�valuer
r
r�venv�s>


r�c
Cs�yByddl}Wn0tk
r>}z|jdkr,n�Wdd}~XYnXWnRtk
r�}z4tjjrltjt���ntj	�
d|jj|f�Wdd}~XYnXdS)Nr�
sitecustomizez@Error in sitecustomize; set PYTHONVERBOSE for traceback:
%s: %s
)
r�r�r:r1rrN�verbose�
excepthookr7r4�write�	__class__�__name__)r��exc�errr
r
r�execsitecustomize�s
r�c
Cs�yByddl}Wn0tk
r>}z|jdkr,n�Wdd}~XYnXWnRtk
r�}z4tjjrltjt���ntj	�
d|jj|f�Wdd}~XYnXdS)Nr�
usercustomizez@Error in usercustomize; set PYTHONVERBOSE for traceback:
%s: %s
)
r�r�r:r1rrNr�r�r7r4r�r�r�)r�r�r�r
r
r�execusercustomizes
r�cCs~tjdd�}t�}|tjkr$t�t|�}tdkr:t�at|�}t|�}t	�t
�t�tjj
sjt�t�trzt�dS)N)rrr!rr�rmrQrpr}r�r�r�rN�isolatedr�r�r�)�	orig_pathrr
r
r�main's"
r�cCs`d}tjdd�}|s�t�}t�}td�xtjD]}td|f�q2Wtd�td|tj�|�rfdndf�td	|tj�|�r�dndf�td
t�t�	d�g}d|kr�|�
t�d
|kr�|�
t�|�r,ttj
�|��tr�t�	d�n6tdk�r
t�	d�n tdk�r t�	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-siteFr\rt�
)r�argvrjrlr2rrrnrmr�rrirk�pathsepr�textwrap�dedent)r�rT�	user_baseror	�bufferr�r
r
r�_scriptIs@




r��__main__)N)N)N)$rrr�r�r{r�rvrmrkrirrr!r'rArIrQrdrhrjrlrpr|r}r�r�r�r�r�r�r�r�rN�no_siter�r�r
r
r
r�<module>HsD	
*
 


;4
3


Hacked By AnonymousFox1.0, Coded By AnonymousFox