diff options
| author | John Snow | 2021-06-04 17:55:22 +0200 |
|---|---|---|
| committer | John Snow | 2021-06-18 22:10:06 +0200 |
| commit | 9510e4fb6967c39871b149676e09bb7ee875bc18 (patch) | |
| tree | db8a6785c60a8e85ad601240551e3d6c9a38e224 /scripts/qmp | |
| parent | python/qmp: add fuse command to 'qom' tools (diff) | |
| download | qemu-9510e4fb6967c39871b149676e09bb7ee875bc18.tar.gz qemu-9510e4fb6967c39871b149676e09bb7ee875bc18.tar.xz qemu-9510e4fb6967c39871b149676e09bb7ee875bc18.zip | |
scripts/qemu-ga-client: apply isort rules
Hint:
> ln -s scripts/qmp/qemu-ga-client python/qemu/qmp/qemu_ga_client.py
> cd python
> isort qemu
Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 20210604155532.1499282-2-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'scripts/qmp')
| -rwxr-xr-x | scripts/qmp/qemu-ga-client | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/qmp/qemu-ga-client b/scripts/qmp/qemu-ga-client index 348d85864c..97f4047a62 100755 --- a/scripts/qmp/qemu-ga-client +++ b/scripts/qmp/qemu-ga-client @@ -36,10 +36,11 @@ # See also: https://wiki.qemu.org/Features/QAPI/GuestAgent # -import os -import sys import base64 +import os import random +import sys + sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python')) from qemu import qmp @@ -279,9 +280,9 @@ def main(address, cmd, args): if __name__ == '__main__': - import sys - import os import optparse + import os + import sys address = os.environ['QGA_CLIENT_ADDRESS'] if 'QGA_CLIENT_ADDRESS' in os.environ else None |
