Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python311/lib64/python3.11/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib64/python3.11/__pycache__/site.cpython-311.opt-1.pyc
�

�,dxX��@�dZddlZddlZddlZddlZddlZejejgada	da
dad�Zd�Z
d�Zd�Zd�Zd�Zdd	�Zd
�Zd�Zd�Zd
�Zd�Zd�Zdd�Zdd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"ej#j$s
e"��d�Z%e&dkre%��dSdS)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�b�tjjrt|tj���dSdS)N��file)�sys�flags�verbose�print�stderr)�messages �+/opt/alt/python311/lib64/python3.11/site.py�_tracer
[s4��
�y��(�
�g�C�J�'�'�'�'�'�'�(�(�c���tjj|�}	tj�|��}n#t$rYnwxYw|tj�|��fS�N)�os�path�join�abspath�OSError�normcase)�paths�dirs  r�makepathr`se��
�'�,��
�C�
��g�o�o�c�"�"�����
�
�
���
������� � ��%�%�%�%s�5�
A�Ac��ttj�����D]�}d}	|jj}n3#t$r&	|jjj}n#t$rYnwxYwYnwxYw|dvr�J	tj
�|j��|_n#tttf$rYnwxYw	tj
�|j��|_��#tttf$rY��wxYwdS)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*is3��
���#�#�%�%�
&�
&�����
�	��L�3�M�M���	�	�	�
� !�
� 1� <�
�
��!�
�
�
���
������	����
� S�S�S��	�������4�4�A�J�J�����3�	�	�	��D�	����	��7�?�?�1�<�8�8�A�L�L�����3�	�	�	��D�	����#�sW�>�
A.�	A�A.�
A(�%A.�'A(�(A.�-A.�7)B!�!B;�:B;�?)C)�)D�Dc���g}t��}tjD]B}t|��\}}||vr*|�|��|�|���C|tjdd�<|S)zK Remove duplicate entries from sys.path along with making them
    absoluteN)rrrr�append�add)�L�known_pathsr�dircases    r�removeduppathsr1�sv��
	�A��%�%�K��x�%�%�� ��}�}���W��+�%�%�
�H�H�S�M�M�M��O�O�G�$�$�$���C�H�Q�Q�Q�K��rc���t��}tjD]Y}	tj�|��r't|��\}}|�|���J#t$rY�VwxYw|S)zEReturn a set containing all existing file system items from sys.path.)rrrr�existsrr-r&)�d�item�_�itemcases    r�_init_pathinfor8�s{�����A������	��w�~�~�d�#�#�
 �&�t�n�n���8����h�������	�	�	��H�	�����Hs�AA%�%
A2�1A2c	��|�t��}d}nd}tj�||��}t	d|����	tjtj|��d���}n#t$rYdSwxYw|5t|��D�]�\}}|�
d��r�|���dkr�5	|�
d	��rt|���[|�
��}t||��\}}	|	|vrStj�|��r4t j�|��|�|	����#t&$r�t)d
�|dz|��t j���d
dl}
|
jt!j���D]7}|���D] }t)d|zt j����!�8t)dt j���YnwxYwddd��n#1swxYwY|rd}|S)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 '.
    NTFzProcessing .pth file: �locale��encoding�#�)zimport zimport	z"Error processing line {:d} of {}:
�rrz  z
Remainder of file ignored)r8rrrr
�io�
TextIOWrapper�	open_coder�	enumerate�
startswith�strip�exec�rstriprr3rr,r-�	Exceptionr	�formatr
�	traceback�format_exception�exc_info�
splitlines)�sitedir�namer/�reset�fullname�f�n�linerr0rJ�records            r�
addpackagerV�s���
��$�&�&��������w�|�|�G�T�*�*�H�
�0�H�0�0�1�1�1��
��R�\�(�3�3�h�G�G�G���������������	
��� ��|�|�	�	�G�A�t����s�#�#�
���z�z�|�|�r�!�!��
��?�?�#:�;�;����J�J�J���{�{�}�}��'���6�6���W��+�-�-�"�'�.�.��2E�2E�-��H�O�O�C�(�(�(��O�O�G�,�,�,����
�
�
��;�B�B�1�Q�3��Q�Q��:�'�'�'�'� � � � �8�i�8�#�,�.�.�I�:�:�F� &� 1� 1� 3� 3�:�:���d�4�i�c�j�9�9�9�9�9�:��3�#�*�E�E�E�E����
����������������������0
�����sW�	(A2�2
B�?B�AH0�$E/�/H0�0A>E/�.H0�/B.H!�H0� H!�!H0�0H4�7H4c��td|����|�t��}d}nd}t|��\}}||vr4tj�|��|�|��	tj|��}n#t$rYdSwxYwd�|D��}t|��D]}t|||���|rd}|S)zTAdd 'sitedir' argument to sys.path if missing and handle .pth files in
    'sitedir'zAdding directory: NTFc�<�g|]}|�d���|��S)z.pth)�endswith)�.0rOs  r�
<listcomp>zaddsitedir.<locals>.<listcomp>�s)��=�=�=�d�t�}�}�V�'<�'<�=�T�=�=�=r)r
r8rrrr,r-r�listdirr�sortedrV)rNr/rP�sitedircase�namesrOs      r�
addsitedirr`�s���+��+�+�,�,�,���$�&�&�������#�G�,�,��G�[��+�%�%������ � � �����$�$�$���
�7�#�#���������������=�=�e�=�=�=�E��u�
�
�/�/���7�D�+�.�.�.�.������s�3B�
B�Bc�|�tjjrdSttd��r?ttd��r*t	j��t	j��krdSttd��r?ttd��r*t	j��t	j��krdSdS)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�hasattrrrcrbrerd�rr�check_enableusersiteri�s����y����u��r�8������Y�!7�!7��
�:�<�<�2�9�;�;�&�&��4��r�8������Y�!7�!7��
�:�<�<�2�9�;�;�&�&��4��4rc	��tj�dd��}|r|StjdvrdSd�}tjdkr-tj�d��pd}||d��Stjdkr9tjr-|dd	tjd
tjdd�z��S|dd��S)
N�PYTHONUSERBASE>�wasi�vxworks�
emscriptenc�b�tj�tjj|���Sr)rr�
expanduserr)�argss r�joinuserz_getuserbase.<locals>.joinusers!���w�!�!�"�'�,��"5�6�6�6r�nt�APPDATA�~�Python�darwin�Libraryz%d.%d�z.local)r�environ�getr�platformrO�
_framework�version_info)�env_baserr�bases   r�_getuserbaser�s����z�~�~�.��5�5�H������|�8�8�8��t�7�7�7�
�w�$����z�~�~�i�(�(�/�C���x��h�'�'�'�
�|�x���C�N���x��Y����#�"2�2�A�2�"6�6�8�8�	8��8�C��"�"�"rc��tj}tjdkr(tj�dd��}|�d|�d�Stjdkrtjr|�d�S|�d|d	�d|d
�d�S)Nrs�.r>z\Pythonz\site-packagesrwz/lib/python/site-packagesz/lib/pythonrr?z/site-packages)rr~rrO�winver�replacer|r})�userbase�version�	ver_nodots   r�	_get_pathr� s�����G�	�w�$����J�&�&�s�B�/�/�	��>�>�I�>�>�>�>�
�|�x���C�N���5�5�5�5��J�J�7�1�:�J�J���
�J�J�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�rhrr�getuserbaser�-s���� �N�N�	��rc�b�t��}t�|�dant|��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.
    NF)r��	USER_SITE�ENABLE_USER_SITEr�)r�s r�getusersitepackagesr�:s5���}�}�H�����$���!�(�+�+�I��rc��td��t��}tr/tj�|��rt
||��|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�isdirr`)r/�	user_sites  r�addusersitepackagesr�KsQ���*�+�+�+�#�%�%�I��+�B�G�M�M�)�4�4�+��9�k�*�*�*��rc
�4�g}t��}|�t}|D]�}|r||vr�	|�|��tjdkr�t
jg}t
jdkr|�d��|D]N}tj�	||dt
j
dd�zd��}|�|���O��|�|��|�tj�	|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.%dryz
site-packages�Lib)r�PREFIXESr-r�sepr�
platlibdirr,rrr~)�prefixes�sitepackages�seen�prefix�libdirs�libdirrs       r�getsitepackagesr�Zs)���L��5�5�D������N�N���	��4�����������
�6�S�=�=��~�&�G��~��&�&����u�%�%�%�!�
*�
*���w�|�|�F�F�$1�C�4D�R�a�R�4H�$H�$3�5�5���#�#�D�)�)�)�)�	
*�
����'�'�'��������V�U�O� L� L�M�M�M�M��rc��td��t|��D]1}tj�|��rt||���2|S)zAdd site-packages to sys.pathzProcessing global site-packages)r
r�rrr�r`)r/r�rNs   r�addsitepackagesr�{sU��
�,�-�-�-�"�8�,�,�-�-��
�7�=�=��!�!�	-��w��,�,�,���rc��tjdkrd}nd}tjd|��t_tjd|��t_dS)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��sG��
�v��~�~�"���!��!�)�&�#�6�6�H�M�!�)�&�#�6�6�H�M�M�Mrc���tjdtj��t_tjdd�dkr tjdd��t_ntjdd��t_gg}}ttdd��}|s>ttd	��r)tj
�tj��}|ra|�
d
dg��|�
tj
�|tj��|tjg��tjdd
||��t_dS)z)Set 'copyright' and 'credits' in builtins�	copyrightN��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.�_stdlib_dirr%zLICENSE.txt�LICENSE�licensez'See https://www.python.org/psf/license/)r��_Printerrr�r�r|r��getattrrgrr�dirnamer%�extendr�pardir�curdirr�)�files�dirs�heres   r�setcopyrightr��s/��&�/��S�]�K�K�H��
�|�B�Q�B��6�!�!�(�1��M�O�O����)�1�)�>T�U�U����b�4�E��3�
�t�,�,�D��,�G�B�
�+�+�,��w���r�{�+�+���F�
���m�Y�/�0�0�0����R�W�\�\�$��	�2�2�D�"�)�D�E�E�E�$�-��1�
�t���H���rc�@�tj��t_dSr)r��_Helperr��helprhrr�	sethelperr��s��!�)�+�+�H�M�M�Mrc�$�d�}|t_dS)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�J���ddl}	ddl�ddl}n#t$rYdSwxYwt	�dd��}|�d|vr��d��n��d��	����n#t$rYnwxYw����dkr�tj
�tj
�d��d���	��
���n#t$rYnwxYw��fd	�}|�|��dSdS)
Nr�__doc__r>�libeditzbind ^I rl_completez
tab: completeruz.python_historyc�V��	�����dS#t$rYdSwxYwr)�write_history_filer)�history�readlines��r�
write_historyzCenablerlcompleter.<locals>.register_readline.<locals>.write_history�sF�����/�/��8�8�8�8�8�������D�D����s��
(�()�atexitr��rlcompleter�ImportErrorr��parse_and_bind�read_init_filer�get_current_history_lengthrrrrp�read_history_file�register)r�r��readline_docr�r�r�s    @@r�register_readlinez,enablerlcompleter.<locals>.register_readline�s������
�
�
�	��O�O�O��������	�	�	��F�F�	����
�x��B�7�7���#�	�\�(A�(A��#�#�$9�:�:�:�:��#�#�O�4�4�4�	��#�#�%�%�%�%���	�	�	�

�D�	�����.�.�0�0�A�5�5��g�l�l�2�7�#5�#5�c�#:�#:�#4�6�6�G�
��*�*�7�3�3�3�3���
�
�
���
����
�
�
�
�
�
�
�O�O�M�*�*�*�*�*�+6�5s0��
��%A:�:
B�B� C6�6
D�DN)r�__interactivehook__)r�s r�enablerlcompleterr��s"��.+�.+�.+�`0�C���rc�d�tj}tjdkr#d|vrtjdx}t_ntj}tj�tj�|����\}}tj�	|��}dt_
d}d�tj�||��tj�||��fD��}|�r+|d}d}	t|d���5}
|
D]�}d	|vr�|�
d	��\}}}
|������}|
���}
|d
kr|
���}	�t|dkr|
t_
��	ddd��n#1swxYwY|xt_t_t%|tjg��|	dkr&t&�dtj��ntjgada|S)
Nrw�__PYVENV_LAUNCHER__z
pyvenv.cfgc�P�g|]#}tj�|���!|��$Srh)rr�isfile)rZ�conffiles  rr[zvenv.<locals>.<listcomp>�s>��
�
�
���7�>�>�(�#�#�
��
�
�
rr�truezutf-8r;�=zinclude-system-site-packages�homeF)rrzrr|�_base_executable�
executabler�splitrr��_homer�open�	partitionrE�lowerr��exec_prefixr�r��insertr�)r/�envr��exe_dirr6�site_prefix�
conf_basename�candidate_confs�virtual_conf�system_siterRrT�key�values              r�venvr��s3��
�*�C�
�|�x���$9�S�$@�$@�,.�J�7L�,M�M�
�S�)�)��^�
�����r�w���z�:�:�;�;�J�G�Q��'�/�/�'�*�*�K��C�I� �M�
�
��G�L�L��-�0�0��G�L�L��m�4�4�"�
�
�
�O��%�&�q�)�����,��
1�
1�
1�		*�Q��
*�
*���$�;�;�$(�N�N�3�$7�$7�M�C��E��)�)�+�+�+�+�-�-�C�!�K�K�M�M�E��<�<�<�&+�k�k�m�m�������$)��	��
*�		*�		*�		*�		*�		*�		*�		*�		*�		*�		*�		*����		*�		*�		*�		*�(3�2��
�S�_�	��c�j�\�2�2�2��&� � ��O�O�A�s�z�*�*�*�*��
�|�H�$���s� B
F7�7F;�>F;c�Z�		ddl}dS#t$r}|jdkrn�Yd}~dSd}~wwxYw#t$rr}tjjr t	jt	j���n6tj	�
d|jj�d|�d���Yd}~dSYd}~dSd}~wwxYw)z,Run custom site specific code, if available.rN�
sitecustomizez9Error in sitecustomize; set PYTHONVERBOSE for traceback:
�: �
)
r�r�rOrHrrr�
excepthookrLr
�write�	__class__�__name__)r��exc�errs   r�execsitecustomizer� �
��/�	� � � � � � ���	�	�	��x�?�*�*�������������	�����
�/�/�/��9��	/��N�C�L�N�N�+�+�+��J������'�'�'����.�
/�
/�
/�
/�
/�
/�
/�
/�
/�
,�+�+�+�+�+�����/����)�	�
+�
&�.�+�.�
B*�A!B%�%B*c�Z�		ddl}dS#t$r}|jdkrn�Yd}~dSd}~wwxYw#t$rr}tjjr t	jt	j���n6tj	�
d|jj�d|�d���Yd}~dSYd}~dSd}~wwxYw)z,Run custom user specific code, if available.rN�
usercustomizez9Error in usercustomize; set PYTHONVERBOSE for traceback:
r�r�)
rr�rOrHrrrr�rLr
r�r�r�)rr�r�s   r�execusercustomizer4r�rc���tjdd�}t��}|tjkrt��t	|��}t
�t
��at|��}t|��}t��t��t��tjj
st��t��t
rt!��dSdS)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�rir�r�r�r�r�r�isolatedr�r�r)�	orig_pathr/s  r�mainrHs���������I� �"�"�K��C�H���	�����{�#�#�K���/�1�1��%�k�2�2�K�!�+�.�.�K��I�I�I��N�N�N�
�K�K�K��9��������������������rc�.�d}tjdd�}|s�t��}t��}t	d��tjD]}t	d|�d����t	d��d�}t	d|�d	||���d
���t	d|�d	||���d
���t	dt����tjd
��g}d|vr|�t��d|vr|�t��|r�t	tj�
|����trtjd
��dStdurtjd��dSt�tjd��dStjd��dSd
dl}t	|�|tjd
tjfz����tjd��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 - user site directory is disabled by super user
          or for security reasons
     >2 - unknown error
    r?zsys.path = [z    �,�]c�L�|�!tj�|��rdSdS)Nr3z
doesn't exist)rrr�)rs rr3z_script.<locals>.exists�s%����B�G�M�M�$�$7�$7���x�&�rzUSER_BASE: z (�)zUSER_SITE: zENABLE_USER_SITE: rz--user-basez--user-siteFry��
)r�argvr�r�r	rr�r�r,r�r�r�pathsepr�textwrap�dedent)r�rq�	user_baser�rr3�bufferrs        r�_scriptrjs��
�D��8�A�B�B�<�D����M�M�	�'�)�)�	�
�n�����8�	&�	&�C��E�s�s�s�$�%�%�%�%�
�c�
�
�
�	'�	'�	'�
	�?�I�?�?�6�6�)�+<�+<�?�?�?�@�@�@�
�?�I�?�?�6�6�)�+<�+<�?�?�?�@�@�@�
�7�#3�7�7�8�8�8�������
�F������
�
�i� � � ������
�
�i� � � �
�
�
�b�j�o�o�f�%�%�&�&�&��	��H�Q�K�K�K�K�K�
��
&�
&��H�Q�K�K�K�K�K�
�
%��H�Q�K�K�K�K�K��H�Q�K�K�K�K�K�����
�h�o�o�d�c�h�q�k�2�:�%>�>�?�?�@�@�@��������r�__main__r)'r�rrr�r�r@r�r�r�r�r�r�r
rr*r1r8rVr`rir�r�r�r�r�r�r�r�r�r�r�r�r�rrr�no_siterr�rhrr�<module>rs&��E�E�N�
�
�
�	�	�	�	���������	�	�	�	�
�J���(����

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

�

�

�,�,�,�^����2���@#�#�#�0
K�
K�
K�
�
�
����"
�
�
�����B����
7�
7�
7� ���4,�,�,�90�90�90�v1�1�1�h/�/�/�(/�/�/�(���>�y����D�F�F�F�4�4�4�l�z����G�I�I�I�I�I��r

ZeroDay Forums Mini