The value of the current_version variable should be set this way

This commit is contained in:
Hoang Hong Quan
2024-07-27 18:49:05 +07:00
parent 1307385e68
commit 247dec1648

View File

@@ -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