From: Maksim Davydov Date: Mon, 18 Mar 2024 21:35:49 +0000 (+0300) Subject: python/qemu/machine: add method to retrieve QEMUMachine::binary field X-Git-Tag: v9.1.0-rc0~135^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=33956e476802a6ae9b9a8e047f6a78e09e9ae180;p=thirdparty%2Fqemu.git python/qemu/machine: add method to retrieve QEMUMachine::binary field Add a supportive property to access the path to the QEMU binary Signed-off-by: Maksim Davydov Reviewed-by: John Snow Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20240318213550.155573-4-davydov-max@yandex-team.ru> Signed-off-by: Philippe Mathieu-Daudé --- diff --git a/python/qemu/machine/machine.py b/python/qemu/machine/machine.py index 31cb9d617d2..f648f6af451 100644 --- a/python/qemu/machine/machine.py +++ b/python/qemu/machine/machine.py @@ -328,6 +328,11 @@ class QEMUMachine: """Returns the list of arguments given to the QEMU binary.""" return self._args + @property + def binary(self) -> str: + """Returns path to the QEMU binary""" + return self._binary + def _pre_launch(self) -> None: if self._qmp_set: if self._monitor_address is None: