ok

Mini Shell

Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/clflags/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/clflags/__pycache__/gather.cpython-311.pyc

�

I/�fk���ddlZddlZddlmZddlmZddlZddlm	Z	m
Z
mZeGd�d����Zdeefd�Z
dS)	�N)�	dataclass)�List)�DEFAULT_FLAGS_STORAGE_PATH�DEFAULT_META_STORAGE_PATH�DEFAULT_FLAG_GLOBc�J�eZdZUeed<eed<eed<ed���Zd�ZdS)�FlagInfo�name�description�pathc�J�tj�|j��S�N)�osr�isfile��selfs ��/builddir/build/BUILDROOT/alt-python27-cllib-3.4.11-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clflags/gather.py�enabledzFlagInfo.enableds���w�~�~�d�i�(�(�(�c�*�t|j��Sr)�hashr
rs r�__hash__zFlagInfo.__hash__s���D�I���rN)�__name__�
__module__�__qualname__�str�__annotations__�propertyrr�rrr	r	s\�������

�I�I�I�����

�I�I�I�
�)�)��X�)�����rr	�returnc�z�g}tj�tt��}tj|��D]�}t
|d���5}tj|�	��tj
���}ddd��n#1swxYwYtj�|��}tj�t|��}|�
t|�d��d|d|�d|���	������|S)
zz
    Gathers information about flags from DEFAULT_META_STORAGE_PATH
    and returns them in python-frienly sturcture.
    zutf-8)�encoding)�LoaderN�.���rr)r
rr)rr�joinrr�glob�open�yaml�load�read�
SafeLoader�basenamer�appendr	�rsplit�get)�
meta_files�storage_glob�	meta_file�f�metadata�	flag_name�default_flag_paths       r�list_flags_infor8s`��
�J��7�<�<� 9�;L�M�M�L��Y�|�,�,���	�
�)�g�
.�
.�
.�	C�!��y������$�/�B�B�B�H�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C����	C�	C�	C�	C��G�$�$�Y�/�/�	��G�L�L�)C�Y�O�O�����(��!�!�#�&�&�r�*� ��/����f�&7�8�8�
�
�
�	�	�	�	��s�3B�B	�B	)r'�os.pathr�dataclassesr�typingrr)�clflags.configrrrr	r8rrr�<module>r=s�����������!�!�!�!�!�!�����������c�c�c�c�c�c�c�c�c�c��
�
�
�
�
�
�
���
���h�������r

Zerion Mini Shell 1.0