From 2be6ece27fd44dc23fe678f582b3cb66261d02a2 Mon Sep 17 00:00:00 2001 From: adator <85586985+adator85@users.noreply.github.com> Date: Fri, 4 Oct 2024 01:03:36 +0200 Subject: [PATCH] Exclude windows from update packages --- core/installation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/installation.py b/core/installation.py index 564b963..ac27161 100644 --- a/core/installation.py +++ b/core/installation.py @@ -1,6 +1,6 @@ import os import json -from sys import exit, executable, prefix, exec_prefix +from sys import exit, prefix from dataclasses import dataclass from subprocess import check_call, run, CalledProcessError, PIPE, check_output from platform import python_version, python_version_tuple @@ -42,6 +42,8 @@ class Install: # Sinon tester les dependances python et les installer avec pip if self.do_install(): + self.check_packages_version() + self.install_dependencies() self.create_service_file() @@ -81,8 +83,6 @@ class Install: # If the Python version is not good then Exit exit("/!\\ Python version error /!\\") - self.check_packages_version() - if not os.path.exists(os.path.join(self.config.defender_install_folder, 'core', 'configuration.json')): # If configuration file do not exist exit("/!\\ Configuration file (core/configuration.json) doesn't exist /!\\")