From 247dec164840d4418ef9e0cff37f1ef51ef86ecf Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Sat, 27 Jul 2024 18:49:05 +0700 Subject: [PATCH] The value of the current_version variable should be set this way --- OpCore-Simplify.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpCore-Simplify.py b/OpCore-Simplify.py index 94b0362..b60ba47 100755 --- a/OpCore-Simplify.py +++ b/OpCore-Simplify.py @@ -13,7 +13,8 @@ class OCPE: self.c = compatibility_checker.CompatibilityChecker() self.b = efi_builder.builder() self.u = utils.Utils() - self.current_version = "0.0.2" + self.version_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "version.json") + self.current_version = self.u.read_file(self.version_path).get("version") self.hardware = None self.compatibility = None self.macos_version = None