chore: пути к файлам настроек поправил

This commit is contained in:
Андрей Скирченко 2024-11-13 15:53:52 +03:00
parent 342b2e45a3
commit ccc59dd4a2

View File

@ -38,9 +38,9 @@ def start_subscription(ssh_connection_object: SSHConnectionParams,
def main(): def main():
ssh_connection_dict = read_json("../data/connection.json") ssh_connection_dict = read_json("data/connection.json")
ssh_connection_object = SSHConnectionParams(**ssh_connection_dict) ssh_connection_object = SSHConnectionParams(**ssh_connection_dict)
subscription_objects_list = read_json("../data/path.json") subscription_objects_list = read_json("data/path.json")
subscription_objects = [SubscriptionObject(**element) for element in subscription_objects_list] subscription_objects = [SubscriptionObject(**element) for element in subscription_objects_list]
init_files_buffer(subscription_objects) init_files_buffer(subscription_objects)
start_subscription(ssh_connection_object, subscription_objects) start_subscription(ssh_connection_object, subscription_objects)