blob: f3518d29a549ba5eff05186ad0c9720c6c11edfc [file] [log] [blame]
Philippe Mathieu-Daudé3d004a32020-01-30 17:32:25 +01001#!/usr/bin/env python3
John Snow52a47412020-10-09 12:15:25 -04002
Markus Armbrusterfb0bc832018-02-26 13:48:58 -06003# 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 Snow52a47412020-10-09 12:15:25 -04006"""
John Snowa76ab212020-10-09 12:15:26 -04007QAPI code generation execution shim.
John Snow52a47412020-10-09 12:15:25 -04008
John Snowa76ab212020-10-09 12:15:26 -04009This standalone script exists primarily to facilitate the running of the QAPI
10code generator without needing to install the python module to the current
11execution environment.
John Snow52a47412020-10-09 12:15:25 -040012"""
Markus Armbrustere6c42b92019-10-18 09:43:44 +020013
Markus Armbrusterfb0bc832018-02-26 13:48:58 -060014import sys
Markus Armbrustere6c42b92019-10-18 09:43:44 +020015
John Snowa76ab212020-10-09 12:15:26 -040016from qapi import main
Markus Armbrusterfb0bc832018-02-26 13:48:58 -060017
18if __name__ == '__main__':
John Snowa76ab212020-10-09 12:15:26 -040019 sys.exit(main.main())