qapi-gen.py 463 B

12345678910111213141516171819
  1. #!/usr/bin/env python3
  2. # This work is licensed under the terms of the GNU GPL, version 2 or later.
  3. # See the COPYING file in the top-level directory.
  4. """
  5. QAPI code generation execution shim.
  6. This standalone script exists primarily to facilitate the running of the QAPI
  7. code generator without needing to install the python module to the current
  8. execution environment.
  9. """
  10. import sys
  11. from qapi import main
  12. if __name__ == '__main__':
  13. sys.exit(main.main())