AlkantarClanX12

Your IP : 3.135.184.136


Current Path : /opt/alt/python312/lib64/python3.12/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/__pycache__/site.cpython-312.pyc

�

�Q�f}Z��^�dZddlZddlZddlZddlZddlZddlZejejga	da
dadad�Z
d�Zd�Zd�Zd�Zd�Zdd	�Zd
�Zd�Zd�Zd
�Zd�Zd�Zdd�Zdd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"d�Z#ejHjJse#�d�Z&e'dk(re&�yy)a�Append module search paths for third-party packages to sys.path.

****************************************************************
* This module is automatically imported during initialization. *
****************************************************************

This will append site-specific paths to the module search path.  On
Unix (including Mac OSX), it starts with sys.prefix and
sys.exec_prefix (if different) and appends
lib/python<version>/site-packages.
On other platforms (such as Windows), it tries each of the
prefixes directly, as well as with lib/site-packages appended.  The
resulting directories, if they exist, are appended to sys.path, and
also inspected for path configuration files.

If a file named "pyvenv.cfg" exists one directory above sys.executable,
sys.prefix and sys.exec_prefix are set to that directory and
it is also checked for site-packages (sys.base_prefix and
sys.base_exec_prefix will always be the "real" prefixes of the Python
installation). If "pyvenv.cfg" (a bootstrap configuration file) contains
the key "include-system-site-packages" set to anything other than "false"
(case-insensitive), the system-level prefixes will still also be
searched for site-packages; otherwise they won't.

All of the resulting site-specific directories, if they exist, are
appended to sys.path, and also inspected for path configuration
files.

A path configuration file is a file whose name has the form
<package>.pth; its contents are additional directories (one per line)
to be added to sys.path.  Non-existing directories (or
non-directories) are never added to sys.path; no directory is added to
sys.path more than once.  Blank lines and lines beginning with
'#' are skipped. Lines starting with 'import' are executed.

For example, suppose sys.prefix and sys.exec_prefix are set to
/usr/local and there is a directory /usr/local/lib/python2.5/site-packages
with three subdirectories, foo, bar and spam, and two path
configuration files, foo.pth and bar.pth.  Assume foo.pth contains the
following:

  # foo package configuration
  foo
  bar
  bletch

and bar.pth contains:

  # bar package configuration
  bar

Then the following directories are added to sys.path, in this order:

  /usr/local/lib/python2.5/site-packages/bar
  /usr/local/lib/python2.5/site-packages/foo

Note that bletch is omitted because it doesn't exist; bar precedes foo
because bar.pth comes alphabetically before foo.pth; and spam is
omitted because it is not mentioned in either path configuration file.

The readline module is also automatically configured to enable
completion for systems that support it.  This can be overridden in
sitecustomize, usercustomize or PYTHONSTARTUP.  Starting Python in
isolated mode (-I) disables automatic readline configuration.

After these operations, an attempt is made to import a module
named sitecustomize, which can perform arbitrary additional
site-specific customizations.  If this import fails with an
ImportError exception, it is silently ignored.
�Nc�p�tjjrt|tj��yy)N��file)�sys�flags�verbose�print�stderr)�messages �+/opt/alt/python312/lib64/python3.12/site.py�_tracer
\s"��
�y�y���
�g�C�J�J�'��c���tjj|�}	tjj|�}|tjj|�fS#t$rY�,wxYw�N)�os�path�join�abspath�OSError�normcase)�paths�dirs  r�makepathras[��
�'�'�,�,��
�C�
��g�g�o�o�c�"������ � ��%�%�%���
��
�s�A�	A*�)A*c�<�ttjj��D]~}d}	|jj
}|dvr�!	tjj|j�|_	tjj|j�|_��y#t$r4	|jjj
}n#t$rYnwxYwY��wxYw#tttf$rY��wxYw#tttf$rY��wxYw)zESet all module __file__ and __cached__ attributes to an absolute pathN>�_frozen_importlib�_frozen_importlib_external)�setr�modules�values�
__loader__�
__module__�AttributeError�__spec__�loaderrrr�__file__r�	TypeError�
__cached__)�m�
loader_modules  r�	abs_pathsr*js���
����#�#�%�
&���
�	��L�L�3�3�M�� S�S��	���������4�A�J�	��7�7�?�?�1�<�<�8�A�L�!'���	�
� !�
�
� 1� 1� <� <�
��!�
��
��	�����3�	��	�����3�	��	�sY�B*�
.C*�9.D�*	C'�4 C�C'�	C!�C'� C!�!C'�&C'�*D�D�D�Dc���g}t�}tjD]7}t|�\}}||vs�|j	|�|j|��9|tjdd|S)zK Remove duplicate entries from sys.path along with making them
    absoluteN)rrrr�append�add)�L�known_pathsr�dircases    r�removeduppathsr1�sa��
	�A��%�K��x�x�� ��}���W��+�%�
�H�H�S�M��O�O�G�$���C�H�H�Q�K��rc���t�}tjD]A}	tjj	|�rt|�\}}|j
|��C|S#t$rY�QwxYw)zEReturn a set containing all existing file system items from sys.path.)rrrr�existsrr-r&)�d�item�_�itemcases    r�_init_pathinfor8�s`����A�����	��w�w�~�~�d�#�&�t�n���8����h���	�
�H���	��	�s�>A!�!	A-�,A-c	��|�
t�}d}nd}tjj||�}	tj|�}t
|dd�tjzst
|dd�tjzrtd|���ytd|���	tj|�5}|j�}ddd�	jd	�}t%|j'�d�D]�\}	}
|
j)d
�r�|
j+�dk(r�,	|
j)d�rt-|
��J|
j/�}
t1||
�\}}||vrOtjj3|�r0t4jj7|�|j9|���|rd}|S#t
$rYywxYw#1swY��	xYw#t
$rYywxYw#t$rFddl}j|j#��}td
|�d|j#����Y��WwxYw#t:$r�}
t=d|	d�d|�d�t4j>��ddl }|jC|
�D]5}|j'�D] }
t=d|
zt4j>���"�7t=dt4j>��Yd}
~
��d}
~
wwxYw)z�Process a .pth file within the site-packages directory:
       For each line in the file, either combine it with sitedir to a path
       and add that to known_paths, or execute it if it starts with 'import '.
    NTF�st_flagsr�st_file_attributeszSkipping hidden .pth file: zProcessing .pth file: z	utf-8-sigzCannot read z# as UTF-8. Using fallback encoding ��#�)zimport zimport	zError processing line r4z of z:
rz  z
Remainder of file ignored)"r8rrr�lstatr�getattr�stat�	UF_HIDDEN�FILE_ATTRIBUTE_HIDDENr
�io�	open_code�read�decode�UnicodeDecodeError�locale�getencoding�	enumerate�
splitlines�
startswith�strip�exec�rstriprr3rr,r-�	Exceptionr	r
�	traceback�format_exception)�sitedir�namer/�reset�fullname�st�f�pth_contentrI�n�linerr0�excrR�records                r�
addpackager_�s���
��$�&�������w�w�|�|�G�T�*�H��
�X�X�h�
��
��Z��	#�d�n�n�	4�	��)�1�	-��0J�0J�	J��,�X�L�9�:��
�
#�H�<�0�1��
�\�\�(�
#�q��&�&�(�K�$�

D�"�(�(��5���[�3�3�5�q�9���4��?�?�3����:�:�<�2���	����6�7��T�
���;�;�=�D�#�G�T�2�L�C���k�)�b�g�g�n�n�S�.A�������$�����(��:�.
������e�����$�
#��������D�	�!�(�(��);�);�)=�>����h�\�**�*0�*<�*<�*>�)A�C�	D�D��,�	��*�1�Q�%�t�H�:�S�A��z�z�
#��#�4�4�S�9��"�-�-�/�D��$�t�)�#�*�*�5�0�:�
�/�c�j�j�A���	�sn�G�"G�7G�G�G+�)H=�A2H=�	G�G�G�G�	G(�'G(�+AH:�9H:�=	K�BK�Kc��td|���|�
t�}d}nd}t|�\}}||vr0tjj|�|j
|�	tj|�}|D�cgc]&}|jd�r|jd�s|��(}}t|�D]}t|||��|rd}|S#t$rYywxYwcc}w)zTAdd 'sitedir' argument to sys.path if missing and handle .pth files in
    'sitedir'zAdding directory: NTFz.pth�.)r
r8rrrr,r-r�listdirr�endswithrM�sortedr_)rTr/rV�sitedircase�namesrUs      r�
addsitedirrg�s����
��{�+�,���$�&������#�G�,��G�[��+�%������� �����$���
�
�7�#��$�
D�e�d��
�
�f�%�d�o�o�c�.B��e�E�
D��u�
���7�D�+�.�������������
Ds�#C�<+C�	C�Cc�b�tjjryttd�r:ttd�r*t	j
�t	j�k7ryttd�r:ttd�r*t	j�t	j�k7ryy)a,Check if user site directory is safe for inclusion

    The function tests for the command line flag (including environment var),
    process uid/gid equal to effective uid/gid.

    None: Disabled for security reasons
    False: Disabled by user (command line option)
    True: Safe and enabled
    F�getuid�geteuidN�getgid�getegidT)	rr�no_user_site�hasattrrrjrirlrk�rr�check_enableusersiterp�sk���y�y�����r�8����Y�!7�
�:�:�<�2�9�9�;�&���r�8����Y�!7�
�:�:�<�2�9�9�;�&��rc	��tjjdd�}|r|Stjdvryd�}tj
dk(r,tjjd�xsd}||d�Stjdk(r=tjr-|dd	tjd
tjddz�S|dd�S)
N�PYTHONUSERBASE>�wasi�vxworks�
emscriptenc�t�tjjtjj|��Sr)rr�
expanduserr)�argss r�joinuserz_getuserbase.<locals>.joinuser&s$���w�w�!�!�"�'�'�,�,��"5�6�6r�nt�APPDATA�~�Python�darwin�Libraryz%d.%d�z.local)r�environ�getr�platformrU�
_framework�version_info)�env_basery�bases   r�_getuserbaser�s����z�z�~�~�.��5�H�����|�|�8�8��7�
�w�w�$���z�z�~�~�i�(�/�C����h�'�'�
�|�|�x��C�N�N���Y�����#�"2�"2�2�A�"6�6�8�	8��C��"�"rc�
�tj}tjdk(r(tjjdd�}|�d|�d�Stjdk(rtjr|�d�S|�d|d	�d|d
�d�S)Nrzrar>z\Pythonz\site-packagesr~z/lib/python/site-packagesz/lib/pythonrr<z/site-packages)rr�rrU�winver�replacer�r�)�userbase�version�	ver_nodots   r�	_get_pathr�5s������G�	�w�w�$���J�J�&�&�s�B�/�	���8�I�;�o�>�>�
�|�|�x��C�N�N���4�5�5��Z�{�7�1�:�,�a���
�|�>�J�Jrc�.�t�
t�atS)z�Returns the `user base` directory path.

    The `user base` directory can be used to store data. If the global
    variable ``USER_BASE`` is not initialized yet, this function will also set
    it.
    )�	USER_BASEr�rorr�getuserbaser�Bs���� �N�	��rc�X�t�}t�|�datSt|�atS)z�Returns the user-specific site-packages directory path.

    If the global variable ``USER_SITE`` is not initialized yet, this
    function will also set it.
    F)r��	USER_SITE�ENABLE_USER_SITEr�)r�s r�getusersitepackagesr�Os7���}�H�����$����"�(�+�I��rc��td�t�}tr+tjj|�rt
||�|S)z�Add a per user site-package to sys.path

    Each user has its own python directory with site-packages in the
    home directory.
    zProcessing user site-packages)r
r�r�rr�isdirrg)r/�	user_sites  r�addusersitepackagesr�`s7���*�+�#�%�I��B�G�G�M�M�)�4��9�k�*��rc
��g}t�}|�t}|D]�}|r||vr�
|j|�tjdk(r�t
jg}t
jdk7r|jd�|D]I}tjj||dt
jddzd�}|j|��K��|j|�|jtjj|dd����|S)aReturns a list containing all global site-packages directories.

    For each directory present in ``prefixes`` (or the global ``PREFIXES``),
    this function will find its `site-packages` subdirectory depending on the
    system environment, and will return a list of full paths.
    N�/�libzpython%d.%dr�z
site-packages�Lib)r�PREFIXESr-r�sepr�
platlibdirr,rrr�)�prefixes�sitepackages�seen�prefix�libdirs�libdirrs       r�getsitepackagesr�os����L��5�D���������4��������
�6�6�S�=��~�~�&�G��~�~��&����u�%�!���w�w�|�|�F�F�$1�C�4D�4D�R�a�4H�$H�$3�5���#�#�D�)�	"�
����'���������V�U�O� L�M�#�$�rc��td�t|�D].}tjj	|�s�#t||��0|S)zAdd site-packages to sys.pathzProcessing global site-packages)r
r�rrr�rg)r/r�rTs   r�addsitepackagesr��s<��
�,�-�"�8�,��
�7�7�=�=��!��w��,�-��rc��tjdk(rd}nd}tjd|�t_tjd|�t_y)z�Define new builtins 'quit' and 'exit'.

    These are objects which make the interpreter exit when called.
    The repr of each object contains a hint at how it works.

    �\zCtrl-Z plus ReturnzCtrl-D (i.e. EOF)�quit�exitN)rr��
_sitebuiltins�Quitter�builtinsr�r�)�eofs r�setquitr��sA��
�v�v��~�"��!��!�)�)�&�#�6�H�M�!�)�)�&�#�6�H�Mrc�L�tjdtj�t_tjdd�t_gg}}t
tdd�}|s=ttd�r-tjjtj�}|ra|jddg�|jtjj|tj�|tjg�tjd	d
||�t_y)z)Set 'copyright' and 'credits' in builtins�	copyright�creditsz�    Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
    for supporting Python development.  See www.python.org for more information.�_stdlib_dirNr%zLICENSE.txt�LICENSE�licensez'See https://www.python.org/psf/license/)r��_Printerrr�r�r�r@rnrr�dirnamer%�extendr�pardir�curdirr�)�files�dirs�heres   r�setcopyrightr��s���&�/�/��S�]�]�K�H��$�-�-�i�:T�U�H���b�4�E��3�
�t�,�D��G�B�
�+��w�w���r�{�{�+���
���m�Y�/�0����R�W�W�\�\�$��	�	�2�D�"�)�)�D�E�$�-�-��1�
�t��H�rc�>�tj�t_yr)r��_Helperr��helprorr�	sethelperr��s��!�)�)�+�H�Mrc� �d�}|t_y)ajEnable default readline configuration on interactive prompts, by
    registering a sys.__interactivehook__.

    If the readline module can be imported, the hook will set the Tab key
    as completion key and register ~/.python_history as history file.
    This can be overridden in the sitecustomize or usercustomize module,
    or in a PYTHONSTARTUP file.
    c����ddl}	ddl�ddl}t	�dd�}|�d|vr�jd�n�jd�	�j
��j�dk(rgtjjtjjd�d��	�j����fd	�}|j|�yy#t$rYywxYw#t$rY��wxYw#t$rY�BwxYw)
Nr�__doc__r>�libeditzbind ^I rl_completez
tab: completer|z.python_historyc�H��	�j��y#t$rYywxYwr)�write_history_filer)�history�readlines��r�
write_historyzCenablerlcompleter.<locals>.register_readline.<locals>.write_history�s*�����/�/��8������s��	!�!)�atexitr��rlcompleter�ImportErrorr@�parse_and_bind�read_init_filer�get_current_history_lengthrrrrw�read_history_file�register)r�r��readline_docr�r�r�s    @@r�register_readlinez,enablerlcompleter.<locals>.register_readline�s�����	����x��B�7���#�	�\�(A��#�#�$9�:��#�#�O�4�	��#�#�%��.�.�0�A�5��g�g�l�l�2�7�7�#5�#5�c�#:�#4�6�G�
��*�*�7�3�
�
�O�O�M�*�+6��)�	��	���	�

�	��"�
��
�s5�C�C!�(C0�	C�C�!	C-�,C-�0	C<�;C<N)r�__interactivehook__)r�s r�enablerlcompleterr��s��.+�`0�C�rc�B�tj}tjdk(r#d|vrtjdx}t_ntj
}tjjtjj|��}tjj|�}dt_	d}td�tjj||�tjj||�fD�d�}|�r|}d}t|d��5}	|	D]q}
d|
vs�|
jd�\}}}
|j�j�}|
j�}
|d	k(r|
j�}�a|d
k(s�g|
t_	�s	ddd�|xt_t_t%|tj g�|dk(r&t&j)dtj �|Stj gada|S#1swY�zxYw)
Nr~�__PYVENV_LAUNCHER__z
pyvenv.cfgc3�^K�|]%}tjj|�r|���'y�wr)rr�isfile)�.0�conffiles  r�	<genexpr>zvenv.<locals>.<genexpr>	s.����	
�&���w�w�~�~�h�'�	
�&�s�+-�truezutf-8)�encoding�=zinclude-system-site-packages�homerF)rr�rr��_base_executable�
executablerr�r�_home�nextr�open�	partitionrN�lowerr��exec_prefixr�r��insertr�)r/�envr��exe_dir�site_prefix�
conf_basename�candidate_conf�virtual_conf�system_siterYr\�keyr6�values              r�venvr��s���
�*�*�C�
�|�|�x��$9�S�$@�,.�J�J�7L�,M�M�
�S�)��^�^�
��g�g�o�o�b�g�g�o�o�j�9�:�G��'�'�/�/�'�*�K��C�I� �M��	
������W�m�4������[�-�8�&�	
�	
�	�N��%�����,��
1�Q����$�;�$(�N�N�3�$7�M�C��E��)�)�+�+�+�-�C�!�K�K�M�E��<�<�&+�k�k�m�����$)��	��2�(3�2��
�S�_�	��c�j�j�\�2��&� ��O�O�A�s�z�z�*�
���
�
�|�H�$����12�
1�s�$
H�/AH�
H�Hc��		ddl}y#t$r}|jdk(rn�Yd}~yd}~wwxYw#t$r�}tj
jr%t	jt	j��n?tjjd|jj�d|�d��Yd}~yYd}~yd}~wwxYw)z,Run custom site specific code, if available.rN�
sitecustomizez9Error in sitecustomize; set PYTHONVERBOSE for traceback:
�: �
)
r�r�rUrQrrr�
excepthook�exc_infor
�write�	__class__�__name__)r�r]�errs   r�execsitecustomizer3���/�	� ���	��x�x�?�*�����	��
�/��9�9����N�N�C�L�L�N�+��J�J������'�'��.�
/�
/�
,��/��)��	,�'�/�,�/�	C�A9B;�;Cc��		ddl}y#t$r}|jdk(rn�Yd}~yd}~wwxYw#t$r�}tj
jr%t	jt	j��n?tjjd|jj�d|�d��Yd}~yYd}~yd}~wwxYw)z,Run custom user specific code, if available.rN�
usercustomizez9Error in usercustomize; set PYTHONVERBOSE for traceback:
r�r�)
rr�rUrQrrrr�r�r
rrr)rr]rs   r�execusercustomizer	Grrc��tjdd}t�}|tjk7r
t�t	|�}t
�
t
�at|�}t|�}t�t�t�tjjs
t�t�t
rt!�yy)z�Add standard site-specific directories to the module search path.

    This function is called automatically when this module is imported,
    unless the python interpreter was started with the -S flag.
    N)rrr1r*r�r�rpr�r�r�r�r�r�isolatedr�rr	)�	orig_pathr/s  r�mainr
[s��������I� �"�K��C�H�H��	���{�#�K���/�1��%�k�2�K�!�+�.�K��I��N�
�K��9�9����������rc���d}tjdd}|s�t�}t�}t	d�tj
D]}t	d|�d���t	d�d�}t	d|�d	||��d
��t	d|�d	||��d
��t	dt���tjd
�g}d|vr|jt�d|vr|jt�|r�t	tjj|��trtjd
�ytdurtjd�yt�tjd�ytjd�yd
dl}t	|j|tjd
tjfz��tjd�y)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    �,�]c�H�|� tjj|�ryy)Nr3z
doesn't exist)rrr�)rs rr3z_script.<locals>.exists�s����B�G�G�M�M�$�$7��&rzUSER_BASE: z (�)zUSER_SITE: zENABLE_USER_SITE: rz--user-basez--user-siteFr���
)r�argvr�r�r	rr�r�r,r�r�r�pathsepr�textwrap�dedent)r�rx�	user_baser�rr3�bufferrs        r�_scriptr}si��
�D��8�8�A�B�<�D���M�	�'�)�	�
�n���8�8�C��s�$�%��
�c�
�	'�
	��I�=��6�)�+<�*=�Q�?�@�
��I�=��6�)�+<�*=�Q�?�@�
�"�#3�"6�7�8������
�F�����
�
�i� �����
�
�i� �
�
�b�j�j�o�o�f�%�&���H�H�Q�K�
��
&��H�H�Q�K�
�
%��H�H�Q�K��H�H�Q�K��
�h�o�o�d�c�h�h�q�k�2�:�:�%>�>�?�@�����r�__main__r)(r�rrr�r�rDrAr�r�r�r�r�r�r
rr*r1r8r_rgrpr�r�r�r�r�r�r�r�r�r�r�r�rr	r
r�no_siterrrorr�<module>rs���E�N�	���	��
�J�J����(����

�	��	�(�
&��.�&

�?�D�4�@#�0
K�
��"
��B�
7� �*,�90�v4�n/�(/�(�>�y�y����F�4�l�z���I�r