2020-01-30 17:32:25 +01:00
|
|
|
#!/usr/bin/env python3
|
2020-10-09 18:15:25 +02:00
|
|
|
|
2018-02-26 20:48:58 +01: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 18:15:25 +02:00
|
|
|
"""
|
2020-10-09 18:15:26 +02:00
|
|
|
QAPI code generation execution shim.
|
2020-10-09 18:15:25 +02:00
|
|
|
|
2020-10-09 18:15:26 +02: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 18:15:25 +02:00
|
|
|
"""
|
2019-10-18 09:43:44 +02:00
|
|
|
|
2018-02-26 20:48:58 +01:00
|
|
|
import sys
|
|
|
|
|
2020-10-09 18:15:26 +02:00
|
|
|
from qapi import main
|
2018-02-26 20:48:58 +01:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2020-10-09 18:15:26 +02:00
|
|
|
sys.exit(main.main())
|