summaryrefslogtreecommitdiffstats
path: root/scripts/qapi-gen.py
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2025-06-06 10:05:23 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2025-06-06 10:05:23 +0000
commit755cc582a2473d06f3a2131d506d0311cc70e9f9 (patch)
tree3efb1ddb8d57bbb4539ac0d229b384871c57820f /scripts/qapi-gen.py
parentInitial commit. (diff)
downloadqemu-upstream.tar.xz
qemu-upstream.zip
Adding upstream version 1:7.2+dfsg.upstream/1%7.2+dfsgupstream
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r--scripts/qapi-gen.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/qapi-gen.py b/scripts/qapi-gen.py
new file mode 100644
index 00000000..f3518d29
--- /dev/null
+++ b/scripts/qapi-gen.py
@@ -0,0 +1,19 @@
+#!/usr/bin/env python3
+
+# This work is licensed under the terms of the GNU GPL, version 2 or later.
+# See the COPYING file in the top-level directory.
+
+"""
+QAPI code generation execution shim.
+
+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.
+"""
+
+import sys
+
+from qapi import main
+
+if __name__ == '__main__':
+ sys.exit(main.main())