관리-도구
편집 파일: site.cpython-311.opt-1.pyc
� c��f�Y � �H � d Z ddlZddlZddlZddlZddlZddlZej ej ga da dadad� 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#ej$ j% s e#� � d� Z&e'dk r e&� � dS dS )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 � t j j rt | t j �� � d S d S )N��file)�sys�flags�verbose�print�stderr)�messages �+/opt/alt/python311/lib64/python3.11/site.py�_tracer \ s4 � � �y�� (� �g�C�J�'�'�'�'�'�'�(� (� c �� � t j j | � } t j � |� � }n# t $ r Y nw xY w|t j � |� � fS �N)�os�path�join�abspath�OSError�normcase)�paths�dirs r �makepathr a se � � �'�,�� �C� ��g�o�o�c�"�"����� � � ��� ������� � ��%�%�%�%s �5 � A�Ac � � t t j � � � � � D ]�} d} | j j }n3# t $ r& | j j j }n# t $ r Y nw xY wY nw xY w|dvr�J t j � | j � � | _ n# t t t f$ r Y nw xY w t j � | j � � | _ ��# t t t f$ r Y ��w xY wdS )zESet all module __file__ and __cached__ attributes to an absolute pathN> �_frozen_importlib�_frozen_importlib_external)�setr �modules�values� __loader__� __module__�AttributeError�__spec__�loaderr r r �__file__r � TypeError� __cached__)�m� loader_modules r � abs_pathsr* j s3 � � ���#�#�%�%� &� &� � ��� � ��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 � � }t j D ]B}t |� � \ }}||vr*| � |� � |� |� � �C| t j dd�<