ce6500893f
Using partial executable paths in the board inspector may cause unintended results when another executable has the same name and is also detectable in the search paths. Introduce a wrapper module (`external_tools`) which locates executables only under system paths such as /usr/bin and /usr/sbin and converts partial executable paths to absolute ones before executing them via the subprocess module. All invocations to `subprocess.run` or `subprocess.Popen` throughout the board inspector are replaced with `external_tools.run`, with the only exception being the invocation to the legacy board parser which already uses an absolute path to the current Python interpreter. Tracked-On: #8315 Signed-off-by: Junjie Mao <junjie.mao@intel.com> |
||
---|---|---|
.. | ||
acpi_gen | ||
acpi_template/template | ||
board_config | ||
board_inspector | ||
configurator | ||
data | ||
hv_config | ||
launch_config | ||
library | ||
scenario_config | ||
schema | ||
service_vm_config | ||
static_allocators | ||
xforms | ||
LICENSE | ||
MANIFEST.in | ||
README.md | ||
build.cmd | ||
pyproject.toml | ||
requirements.txt | ||
setup.cfg |
README.md
Supporting libraries of ACRN configuration toolset
This package contains the libraries supporting ACRN configuration toolset, including:
- The manipulators and validators of scenario schemas or XMLs
- The generator of guest ACPI tables
The main objective of this package is to ease the import of the supporting libraries in the ACRN configurator which uses a Python interpreter built in WebAssembly (WASM). This package is thus NOT intended to be used by users; invoke the Python scripts directly if needed.