[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 3/4] python: add binary
From: |
John Snow |
Subject: |
Re: [PATCH v6 3/4] python: add binary |
Date: |
Thu, 9 Nov 2023 16:49:32 -0500 |
On Wed, Nov 8, 2023 at 10:39 AM Maksim Davydov
<davydov-max@yandex-team.ru> wrote:
>
> Add a supportive property to access the path to the qemu binary
>
> Signed-off-by: Maksim Davydov <davydov-max@yandex-team.ru>
> ---
> python/qemu/machine/machine.py | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/python/qemu/machine/machine.py b/python/qemu/machine/machine.py
> index 31cb9d617d..78436403b2 100644
> --- a/python/qemu/machine/machine.py
> +++ b/python/qemu/machine/machine.py
> @@ -328,6 +328,11 @@ def args(self) -> List[str]:
> """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:
> --
> 2.34.1
>
>
'kay.
Reviewed-by: John Snow <jsnow@redhat.com>