mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
a76ab215ec
As part of delinting and adding type hints to the QAPI generator, it's helpful for the entrypoint to be part of the package, only leaving a very tiny entrypoint shim outside of the package. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Reviewed-by: Cleber Rosa <crosa@redhat.com> Tested-by: Cleber Rosa <crosa@redhat.com> Message-Id: <20201009161558.107041-5-jsnow@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> [invalid_char() renamed to invalid_prefix_char()] Signed-off-by: Markus Armbruster <armbru@redhat.com>
20 lines
463 B
Python
20 lines
463 B
Python
#!/usr/bin/env python3
|
|
|
|
# This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
# See the COPYING file in the top-level directory.
|
|
|
|
"""
|
|
QAPI code generation execution shim.
|
|
|
|
This standalone script exists primarily to facilitate the running of the QAPI
|
|
code generator without needing to install the python module to the current
|
|
execution environment.
|
|
"""
|
|
|
|
import sys
|
|
|
|
from qapi import main
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(main.main())
|