관리-도구
편집 파일: pep514.cpython-311.pyc
� �܋f� � � � d Z ddlZddlZddlZddlmZmZ ee� � Zd� Z d� Z d� Zd� Zd� Z d � Zd � Zd� Zd� Zd � Zd� Zd� Zd� Zedk r e� � dS dS )z[Implement https://www.python.org/dev/peps/pep-0514/ to discover interpreters - Windows only� N)�basicConfig� getLoggerc # �l K � d} t j | |� � V � n# t $ r Y d S w xY w|dz }�0)Nr T� )�winreg�EnumKey�OSError)�key�ats �t/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/virtualenv/discovery/windows/pep514.py� enum_keysr s` � � � � �B�� ��.��b�)�)�)�)�)�)��� � � ��E�E� ���� �a���s � � -�-c �\ � t j | |� � d S # t $ r Y d S w xY w)Nr )r �QueryValueExr )r � value_names r � get_valuer sA � ���"�3� �3�3�A�6�6��� � � ��t�t����s � � +�+c # �� K � t j ddddft j ddt j dft j ddt j dffD ]!\ } }}}}t | ||||� � E d {V �� �"d S )N�HKEY_CURRENT_USERzSoftware\Pythonr �@ �HKEY_LOCAL_MACHINE� )r r r �KEY_WOW64_64KEY�KEY_WOW64_32KEY�process_set)�hive� hive_namer �flags�default_archs r �discover_pythonsr s� � � � � � !�#6�8J�A�r�R� � "�$8�:L�f�Nd�fh�i� � "�$8�:L�f�Nd�fh�i�6� J� J�1��i��e�\� �t�Y��U�L�I�I�I�I�I�I�I�I�I�I�J� J� c # � K � t j | |dt j |z � � 5 }t |� � D ]!}|dk r� t ||||� � E d {V �� �" d d d � � d S # 1 swxY w Y d S # t $ r Y d S w xY w)Nr � PyLauncher)r � OpenKeyEx�KEY_READr �process_companyr )r r r r r �root_key�companys r r r % s � � � � � � �d�C��F�O�e�,C� D� D� W��$�X�.�.� W� W���l�*�*��*�9�g�x��V�V�V�V�V�V�V�V�V�V� W� W� W� W� W� W� W� W� W� W� W� W� W���� W� W� W� W� W� W�� � � � ���� ���s4 �$A5 �2A(�A5 �(A,�,A5 �/A,�0A5 �5 B�Bc # � K � t j ||� � 5 }t |� � D ]}t | ||||� � }|�|V � � d d d � � d S # 1 swxY w Y d S �N)r r"