xref: /openbmc/qemu/scripts/qapi-gen.py (revision 2387df49)
13d004a37SPhilippe Mathieu-Daudé#!/usr/bin/env python3
252a47418SJohn Snow
3fb0bc835SMarkus Armbruster# This work is licensed under the terms of the GNU GPL, version 2 or later.
4fb0bc835SMarkus Armbruster# See the COPYING file in the top-level directory.
5fb0bc835SMarkus Armbruster
652a47418SJohn Snow"""
7*a76ab215SJohn SnowQAPI code generation execution shim.
852a47418SJohn Snow
9*a76ab215SJohn SnowThis standalone script exists primarily to facilitate the running of the QAPI
10*a76ab215SJohn Snowcode generator without needing to install the python module to the current
11*a76ab215SJohn Snowexecution environment.
1252a47418SJohn Snow"""
13e6c42b96SMarkus Armbruster
14fb0bc835SMarkus Armbrusterimport sys
15e6c42b96SMarkus Armbruster
16*a76ab215SJohn Snowfrom qapi import main
17fb0bc835SMarkus Armbruster
18fb0bc835SMarkus Armbrusterif __name__ == '__main__':
19*a76ab215SJohn Snow    sys.exit(main.main())
20