mirror of
https://github.com/platomav/BIOSUtilities.git
synced 2025-05-09 13:52:00 -04:00
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:
parent
29dabc7401
commit
35564f31b7
19 changed files with 252 additions and 198 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue