From 24787ad33d5a2842f759aa31913d0be7742afcf8 Mon Sep 17 00:00:00 2001 From: Hoang Hong Quan Date: Sun, 11 Aug 2024 11:38:25 +0700 Subject: [PATCH] Resolve path separator issue for OS-independent cross-platform compatibility --- Scripts/efi_builder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/efi_builder.py b/Scripts/efi_builder.py index a87b219..0391ec3 100755 --- a/Scripts/efi_builder.py +++ b/Scripts/efi_builder.py @@ -343,9 +343,9 @@ class builder: kexts_directory = os.path.join(efi_directory, "EFI", "OC", "Kexts") kext_list = self.utils.find_matching_paths(kexts_directory, ".kext") - kext_loaded = [kext.get("BundlePath") for kext in config.get("Kernel").get("Add")] + kext_loaded = [os.path.basename(kext.get("BundlePath")) for kext in config.get("Kernel").get("Add")] for kext_path in kext_list: - if not kext_path in kext_loaded: + if not os.path.basename(kext_path) in kext_loaded: files_to_remove.append(os.path.join(kexts_directory, kext_path)) tools_directory = os.path.join(efi_directory, "EFI", "OC", "Tools")