Your IP : 18.226.166.207


Current Path : /opt/alt/python35/lib64/python3.5/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/__pycache__/site.cpython-35.opt-2.pyc



$�YfT�@s�ddlZddlZddlZddlZejejgadadada	dd�Z
dd�Zdd�Zdd	�Z
d
d�Zddd
�Zdd�Zdd�Zdd�Zdd�Zddd�Zddd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$Zd%d&�Zd'd(�Zd)d*�Zd+d,�Zej j!sre�d-d.�Z"e#d/kr�e"�dS)0�NcGsStjj|�}ytjj|�}Wntk
r<YnX|tjj|�fS)N)�os�path�join�abspath�OSError�normcase)�paths�dir�r
�)/opt/alt/python35/lib64/python3.5/site.py�makepathYs
rcCs�x�ttjj��D]�}tt|dd�dd�dkrCqytjj|j�|_Wnt	t
fk
ryYnXytjj|j�|_Wqt	t
fk
r�YqXqWdS)N�
__loader__�
__module__�_frozen_importlib�_frozen_importlib_external)rr)�set�sys�modules�values�getattrrrr�__file__�AttributeErrorr�
__cached__)�mr
r
r�	abs_pathsbs	rcCsrg}t�}xItjD]>}t|�\}}||kr|j|�|j|�qW|tjdd�<|S)N)rrrr�append�add)�L�known_pathsr	�dircaser
r
r�removeduppathsrs	
r cCsnt�}x^tjD]S}y5tjj|�rMt|�\}}|j|�Wqtk
rewYqXqW|S)N)rrrr�isdirrr�	TypeError)�dr	rr
r
r�_init_pathinfo�s	
r$cCs�|dkrt�}d}nd}tjj||�}yt|d�}Wntk
rddSYnX|�VxNt|�D]@\}}|jd�r�qyy||jd�r�t|�wy|j	�}t
||�\}}	|	|krtjj|�rtjj
|�|j|	�Wqytk
r�tdj|d|�dtj�ddl}
xK|
jtj��D]4}x+|j�D]}td	|dtj�q{WqhWtd
dtj�PYqyXqyWWdQRX|r�d}|S)N�r�r�#�import �import	z"Error processing line {:d} of {}:
�filez  z
Remainder of file ignored)r(r))r$rrr�openr�	enumerate�
startswith�exec�rstripr�existsrrr�	Exception�print�format�stderr�	traceback�format_exception�exc_info�
splitlines)�sitedir�namer�reset�fullname�f�n�liner	rr5�recordr
r
r�
addpackage�sD		
	


rAc
Cs�|dkrt�}d}nd}t|�\}}||kr_tjj|�|j|�ytj|�}Wntk
r�dSYnXdd�|D�}x$t	|�D]}t
|||�q�W|r�d}|S)Nr%rcSs%g|]}|jd�r|�qS)z.pth)�endswith)�.0r:r
r
r�
<listcomp>�s	zaddsitedir.<locals>.<listcomp>)r$rrrrrr�listdirr�sortedrA)r9rr;�sitedircase�namesr:r
r
r�
addsitedir�s$		

	rIcCs�tjjrdSttd�rJttd�rJtj�tj�krJdSttd�r�ttd�r�tj�tj�kr�dSdS)NF�getuid�geteuid�getgid�getegidT)	r�flags�no_user_site�hasattrrrKrJrMrLr
r
r
r�check_enableusersite�s
rQcCs0tdk	rtSddlm}|d�atS)Nr)�get_config_var�userbase)�	USER_BASE�	sysconfigrR)rRr
r
r�getuserbase�s
rVcCs�t�}tdk	rtSddlm}tjdkrgddlm}|d�rg|dd�atS|ddtj�atS)	Nr)�get_path�darwin)rR�PYTHONFRAMEWORK�purelib�osx_framework_userz%s_user)	rV�	USER_SITErUrWr�platformrRrr:)�	user_baserWrRr
r
r�getusersitepackages�s	r_cCs2t�}tr.tjj|�r.t||�|S)N)r_�ENABLE_USER_SITErrr!rI)r�	user_siter
r
r�addusersitepackagess	
rbc	Cs|g}t�}|dkr!t}xT|D]L}|s(||krDq(|j|�tjdkr�|jtjj|ddtj	dd�d��|jtjj|ddtj	dd�d��nK|j|�|jtjj|dd��|jtjj|dd��tj
dkr(dd	lm}|d
�}|r(|jtjjd|tj	dd�d��q(W|S)N�/�lib64�python�z
site-packages�librXr)rRrYz/Library)
r�PREFIXESrr�seprrrr�versionr]rUrR)�prefixes�sitepackages�seen�prefixrR�	frameworkr
r
r�getsitepackagess4	




rpcCs:x3t|�D]%}tjj|�r
t||�q
W|S)N)rprrr!rI)rrkr9r
r
r�addsitepackagesGsrqcCsdtjdkrd}ntjdkr0d}nd}tjd|�t_tjd|�t_dS)N�:zCmd-Q�\zCtrl-Z plus ReturnzCtrl-D (i.e. EOF)�quit�exit)rri�
_sitebuiltins�Quitter�builtinsrtru)�eofr
r
r�setquitOs		rzcCs�tjdtj�t_tjdd�dkrItjdd�t_ntjdd�t_gg}}ttd�r�tj	j
tj�}|jdd	g�|jtj	j
|tj�|tjg�tjd
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/)rv�_Printerrr{rxr]r~rPrr�dirnamer�extendr�pardir�curdirr�)�files�dirs�herer
r
r�setcopyrightas 	
+r�cCstj�t_dS)N)rv�_Helperrx�helpr
r
r
r�	sethelperysr�cCsdd�}|t_dS)NcSsddl}yddl}ddl}Wntk
r@dSYnXt|dd�}|dk	r{d|kr{|jd�n
|jd�y|j�Wntk
r�YnX|j�dkrt	j
jt	j
jd�d�}y|j
|�Wntk
rYnX|j|j|�dS)	Nr�__doc__��libeditzbind ^I rl_completez
tab: complete�~z.python_history)�atexit�readline�rlcompleter�ImportErrorr�parse_and_bind�read_init_filer�get_current_history_lengthrrr�
expanduser�read_history_file�IOError�register�write_history_file)r�r�r��readline_doc�historyr
r
r�register_readline�s,
	

	
z,enablerlcompleter.<locals>.register_readline)r�__interactivehook__)r�r
r
r�enablerlcompleter|s	'r�cCs�tjdkr�ddl}ddl}|jd�}|jd�r�y|j|�Wn>tk
r�ddl}|j	|j
|<d|jj|<YnXdS)N�win32rF�cp�mbcs)rr]�_bootlocale�codecs�getpreferredencodingr-�lookup�LookupError�	encodings�_unknown�_cache�aliases)r�r��encr�r
r
r�	aliasmbcs�s
r�z,^(?P<key>(\w|[-_])+)\s*=\s*(?P<value>.*)\s*$cCstj}tjdkr4d|kr4tjd}n	tj}tjjtjj|��\}}tjj|�}dt_	d}dd�tjj
||�tjj
||�fD�}|rddl}|jt
�}	|d}
d}t|
dd	���}x�|D]�}
|
j�}
|	j|
�}|r|j�}|d
j�|d}}|dkro|j�}q|d
kr�|t_	q|dkr|j�dkr|}d}qWWdQRX|t_t_t|tjg�|dkrtjdtj�ntjgada|S)NrX�__PYVENV_LAUNCHER__z
pyvenv.cfgcSs(g|]}tjj|�r|�qSr
)rr�isfile)rC�conffiler
r
rrD�s	zvenv.<locals>.<listcomp>r�true�encodingzutf-8�key�valuezinclude-system-site-packages�home�applocal�falseF)r�environrr]�
executabler�splitrr��_homer�re�compile�CONFIG_LINEr+�strip�match�	groupdict�lowerrn�exec_prefixrqrh�insertr`)r�envr��exe_dir�_�site_prefix�
conf_basename�candidate_confsr��config_line�virtual_conf�system_siter=r?rr#r�r�r
r
r�venv�sJ		$		

r�cCs�yddl}Wn~tk
r$Ynmtk
r�}zMtjjd�r^tjtj��n tj	j
d|jj|f�WYdd}~XnXdS)Nr�
PYTHONVERBOSEz@Error in sitecustomize; set PYTHONVERBOSE for traceback:
%s: %s
)
�
sitecustomizer�r1rr��getr�
excepthookr7r4�write�	__class__�__name__)r��errr
r
r�execsitecustomize�s
	r�cCs�yddl}Wn~tk
r$Ynmtk
r�}zMtjjd�r^tjtj��n tj	j
d|jj|f�WYdd}~XnXdS)Nrr�z@Error in usercustomize; set PYTHONVERBOSE for traceback:
%s: %s
)
�
usercustomizer�r1rr�r�rr�r7r4r�r�r�)r�r�r
r
r�execusercustomizes
	r�cCs�t�t�}t|�}tdkr1t�at|�}t|�}t�t�t	�t
�t�t�tr�t
�dS)N)rr r�r`rQrbrqrzr�r�r�r�r�r�)rr
r
r�mains		r�cCs�d}tjdd�}|s�t�}t�}td�x"tjD]}td|f�qEWtd�td|tjj|�r�dndf�td	|tjj|�r�dndf�td
t�tj	d�g}d|kr�|j
t�d
|kr|j
t�|r�ttj
j|��trGtj	d�q�tdkrctj	d�q�tdkrtj	d�q�tj	d�n@ddl}t|j|tjdtj
f��tj	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)r0z
doesn't existzUSER_SITE: %r (%s)zENABLE_USER_SITE: %rrz--user-basez--user-siteF�rf�
)r�argvrVr_r2rrr!r`rurrTr\�pathsepr�textwrap�dedent)r��argsr^rar	�bufferr�r
r
r�_script9s@		

	#	#


'r��__main__)$rrrxrvrnr�rhr`r\rTrrr r$rArIrQrVr_rbrprqrzr�r�r�r�r�r�r�r�r�rN�no_siter�r�r
r
r
r�<module>GsD	
*(2=3

?>