python/qemu-ga-client: add entry point
Remove the shebang, and add a package-defined entry point instead. Now, it can be accessed using 'qemu-ga-client' from the command line after installing the package. The next commit adds a forwarder shim that allows the running of this script without needing to install the package again. Signed-off-by: John Snow <jsnow@redhat.com> Message-id: 20210604155532.1499282-11-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
This commit is contained in:
parent
1e129afc31
commit
7e7c2a0de7
2
python/qemu/qmp/qemu_ga_client.py
Executable file → Normal file
2
python/qemu/qmp/qemu_ga_client.py
Executable file → Normal file
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
"""
|
||||
QEMU Guest Agent Client
|
||||
|
||||
|
@ -50,6 +50,7 @@ console_scripts =
|
||||
qom-list = qemu.qmp.qom:QOMList.entry_point
|
||||
qom-tree = qemu.qmp.qom:QOMTree.entry_point
|
||||
qom-fuse = qemu.qmp.qom_fuse:QOMFuse.entry_point [fuse]
|
||||
qemu-ga-client = qemu.qmp.qemu_ga_client:main
|
||||
|
||||
[flake8]
|
||||
extend-ignore = E722 # Prefer pylint's bare-except checks to flake8's
|
||||
|
Loading…
Reference in New Issue
Block a user