관리-도구
편집 파일: eula.cpython-311.pyc
� IMg� � �� � d dl Z d dlZd dlmZ d dlmZ d dlmZ d dl m Z mZ dZerdndZ d Zd Zddedee d efd�Zded efd�Zd efd�Zdd�Zdd�Zd efd�Zd efd�Zd efd�ZdS )� N)�Optional)�files)�ANTIVIRUS_MODE)�Eula�run_in_executorz message{}.txtz-av� z eula{}.txtz updated{}.txt�path�errors�returnc � � t | |�� � 5 }|� � � � � � cd d d � � S # 1 swxY w Y d S )N�r )�open�read�strip)r r �fs �S/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/contracts/eula.py� _readfiler s� � � �d�6� "� "� "� �a��v�v�x�x�~�~��� � � � � � � � � � � � ���� � � � � � s �&A�A �A �templatec � � t j � t j � t j � � | � t � � � � S �N) �osr �joinr �Index� files_path�EULA�format�_SUFFIX)r s r � _get_pathr s= � � �7�<�<� ����u�z�*�*�H�O�O�G�,D�,D�� � � c � �h K � t t j � � t j � � � d{V ��S )z9Return True if latest EULA was accepted, False otherwise.N)r �asyncio�get_event_loopr �is_accepted� r r r# r# s4 � � � � ��!7�!9�!9�4�;K�L�L�L�L�L�L�L�L�Lr c � �l K � t t j � � t j � � � d{V �� dS )z Accepts EULA.N)r r! r"