Philippe Mathieu-Daudé | 3d004a3 | 2020-01-30 17:32:25 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
John Snow | 52a4741 | 2020-10-09 12:15:25 -0400 | [diff] [blame] | 2 | |
Markus Armbruster | fb0bc83 | 2018-02-26 13:48:58 -0600 | [diff] [blame] | 3 | # This work is licensed under the terms of the GNU GPL, version 2 or later. |
| 4 | # See the COPYING file in the top-level directory. |
| 5 | |
John Snow | 52a4741 | 2020-10-09 12:15:25 -0400 | [diff] [blame] | 6 | """ |
John Snow | a76ab21 | 2020-10-09 12:15:26 -0400 | [diff] [blame] | 7 | QAPI code generation execution shim. |
John Snow | 52a4741 | 2020-10-09 12:15:25 -0400 | [diff] [blame] | 8 | |
John Snow | a76ab21 | 2020-10-09 12:15:26 -0400 | [diff] [blame] | 9 | This standalone script exists primarily to facilitate the running of the QAPI |
| 10 | code generator without needing to install the python module to the current |
| 11 | execution environment. |
John Snow | 52a4741 | 2020-10-09 12:15:25 -0400 | [diff] [blame] | 12 | """ |
Markus Armbruster | e6c42b9 | 2019-10-18 09:43:44 +0200 | [diff] [blame] | 13 | |
Markus Armbruster | fb0bc83 | 2018-02-26 13:48:58 -0600 | [diff] [blame] | 14 | import sys |
Markus Armbruster | e6c42b9 | 2019-10-18 09:43:44 +0200 | [diff] [blame] | 15 | |
John Snow | a76ab21 | 2020-10-09 12:15:26 -0400 | [diff] [blame] | 16 | from qapi import main |
Markus Armbruster | fb0bc83 | 2018-02-26 13:48:58 -0600 | [diff] [blame] | 17 | |
| 18 | if __name__ == '__main__': |
John Snow | a76ab21 | 2020-10-09 12:15:26 -0400 | [diff] [blame] | 19 | sys.exit(main.main()) |