BIOSUtilities v24.11.10

Re-written public attributes of Apple EFI ID
Improved memory consumption for all utilities
Adjusted README with consolidated requirements
This commit is contained in:
Plato Mavropoulos 2024-11-11 01:18:34 +02:00
parent 29dabc7401
commit 35564f31b7
19 changed files with 252 additions and 198 deletions

View file

@ -16,7 +16,7 @@ from importlib.util import module_from_spec, spec_from_file_location
from types import ModuleType
from typing import Type
from biosutilities.common.paths import is_dir, is_file, project_root
from biosutilities.common.paths import is_dir, is_file_read, project_root
from biosutilities.common.texts import to_string
@ -30,10 +30,10 @@ def get_external_path(cmd: str | list | tuple) -> str:
for command in cmd if isinstance(cmd, (list, tuple)) else [to_string(in_object=cmd)]:
command_path: str | None = shutil.which(command, path=external_path)
if command_path and is_file(in_path=command_path):
if command_path and is_file_read(in_path=command_path):
return command_path
raise OSError(f'{to_string(in_object=cmd, sep_char=", ")} could not be found!')
raise OSError(f'{to_string(in_object=cmd, sep_char=", ")} requirement could not be found!')
def big_script_tool() -> Type | None: