2020-01-30 16:32:25 +00:00
|
|
|
#!/usr/bin/env python3
|
2020-10-09 16:15:25 +00:00
|
|
|
|
2018-02-26 19:48:58 +00:00
|
|
|
# This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
|
|
# See the COPYING file in the top-level directory.
|
|
|
|
|
2020-10-09 16:15:25 +00:00
|
|
|
"""
|
2020-10-09 16:15:26 +00:00
|
|
|
QAPI code generation execution shim.
|
2020-10-09 16:15:25 +00:00
|
|
|
|
2020-10-09 16:15:26 +00:00
|
|
|
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.
|
2020-10-09 16:15:25 +00:00
|
|
|
"""
|
2019-10-18 07:43:44 +00:00
|
|
|
|
2018-02-26 19:48:58 +00:00
|
|
|
import sys
|
|
|
|
|
2020-10-09 16:15:26 +00:00
|
|
|
from qapi import main
|
2018-02-26 19:48:58 +00:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2020-10-09 16:15:26 +00:00
|
|
|
sys.exit(main.main())
|