%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3.12/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3.12/__pycache__/site.cpython-312.pyc

�

���f_]��^�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/python3/dist-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.

For Debian and derivatives, this sys.path is augmented with directories
for packages distributed within the distribution. Local addons go
into /usr/local/lib/python<version>/dist-packages, Debian addons
install into /usr/lib/python3/dist-packages.
/usr/lib/python<version>/site-packages is not used.

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 �/usr/lib/python3.12/site.py�_tracer
bs"��
�y�y���
�g�C�J�J�'��c���tjj|�}	tjj|�}|tjj|�fS#t$rY�,wxYw�N)�os�path�join�abspath�OSError�normcase)�paths�dirs  r�makepathrgs[��
�'�'�,�,��
�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*ps���
����#�#�%�
&����
�	��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�sf��
	�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�se����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|���	tjtj|�d	�
�}|5t|�D]�\}}|jd�r�|j!�dk(r�,	|jd
�rt#|��J|j%�}t'||�\}	}
|
|vrOtjj)|	�r0t*jj-|	�|j/|
���ddd�|rd}|S#t
$rYywxYw#t
$rYywxYw#t0$r�}t3dj5|dz|�t*j6��ddl}|j;|�D]5}
|
j=�D] }t3d|zt*j6���"�7t3dt*j6��Yd}~��d}~wwxYw#1swY��xYw)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: �locale��encoding�#�)zimport zimport	z"Error processing line {:d} of {}:
�rz  z
Remainder of file ignored)r8rrr�lstatr�getattr�stat�	UF_HIDDEN�FILE_ATTRIBUTE_HIDDENr
�io�
TextIOWrapper�	open_code�	enumerate�
startswith�strip�exec�rstriprr3rr,r-�	Exceptionr	�formatr
�	traceback�format_exception�
splitlines)�sitedir�namer/�reset�fullname�st�f�n�linerr0�excrQ�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��
���R�\�\�(�3�h�G��
�� ��|�	�G�A�t����s�#���z�z�|�r�!��
��?�?�#:�;���J���{�{�}��'���6���W��+�-�"�'�'�.�.��2E��H�H�O�O�C�(��O�O�G�,��	��0
������O����������"�
��;�B�B�1�Q�3��Q��:�:�'� �'�8�8��=�:�F� &� 1� 1� 3�:���d�4�i�c�j�j�9�:�:��3�#�*�*�E���
����sg�F&�"*F5�8I1�G�#I1�$A2G�I1�&	F2�1F2�5	G�G�	I.�
BI)�#I1�)I.�.I1�1I:c��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�endswithrK�sortedr^)rTr/rV�sitedircase�namesrUs      r�
addsitedirrf�s����
��{�+�,���$�&������#�G�,��G�[��+�%������� �����$���
�
�7�#��$�
D�d��
�
�f�%�d�o�o�c�.B��
D�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�hasattrrrirhrkrj�rr�check_enableusersitero�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_baserx�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)Nryr`r@z\Pythonz\site-packagesr}z/lib/python/site-packagesz/lib/pythonrrAz/site-packages)rr�rrU�winver�replacer�r�)�userbase�version�	ver_nodots   r�	_get_pathr�0s������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�rnrr�getuserbaser�=s���� �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�Js7���}�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�isdirrf)r/�	user_sites  r�addusersitepackagesr�[s7���*�+�#�%�I��B�G�G�M�M�)�4��9�k�*��rc��g}t�}|�t}tjtjk7xsttd�}|D�]�}|r||vr�|j
|�tjdk(�rBtjg}tjdk7r|jd�|rE|jtjj|ddtjddzd��|jtjj|ddtjddzd	��|jtjj|dd
d	��|D]I}tjj||dtjddzd	�}|j|��K��r|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�real_prefix�/�libzpython%d.%drz
site-packagesz	local/libz
dist-packages�python3�Lib)r�PREFIXESr�base_prefix�prefixrmr-r�sep�
platlibdirr,rrr�)�prefixes�sitepackages�seen�is_virtual_environmentr��libdirs�libdirrs        r�getsitepackagesr�js����L��5�D����� �_�_��
�
�:�Y�g�c�=�>Y���N����4��������
�6�6�S�=��~�~�&�G��~�~��&����u�%�%��#�#�B�G�G�L�L���1>��AQ�AQ�RT�ST�AU�1U�1@�%B�C�
��������V�[�-:�S�=M�=M�b�q�=Q�-Q�-<�!>�
?�
��������V�U�-6�-<�!>�
?�"�
*���w�w�|�|�F�F�$1�C�4D�4D�R�a�4H�$H�$3�5���#�#�D�)�	
*�
����'���������V�U�O� L�M�9N�:�rc��td�t|�D].}tjj	|�s�#t||��0|S)zAdd site-packages to sys.pathzProcessing global site-packages)r
r�rrr�rf)r/r�rTs   r�addsitepackagesr��sA��
�,�-�"�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�rCrmrr�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��helprnrr�	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�ImportErrorrC�parse_and_bind�read_init_filer�get_current_history_lengthrrrrv�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-8r=�=zinclude-system-site-packages�homerF)rr�rr��_base_executable�
executablerr�r�_home�nextr�open�	partitionrL�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�����$)��	�
*�		*�(3�2��
�S�_�	��c�j�j�\�2��&� ��O�O�A�s�z�z�*�
���
�
�|�H�$����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�rUrOrrr�
excepthook�exc_infor
�write�	__class__�__name__)r�r\�errs   r�execsitecustomizer;���/�	� ���	��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�)
r
r�rUrOrrrrrr
rrr)r
r\rs   r�execusercustomizerOrrc��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�ror�r�r�r�r�r�isolatedr�rr)�	orig_pathr/s  r�mainrcs��������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
    rAz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�rw�	user_baser�rr3�bufferrs        r�_scriptr�sn��
�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�rGrDr�r�r�r�r�r�r
rr*r1r8r^rfror�r�r�r�r�r�r�r�r�r�r�r�rrrr�no_siterrrnrr�<module>r s���K�Z�	���	��
�J�J����(����

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

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

Zerion Mini Shell 1.0