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