aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside-tools/pyside_tool.py
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2021-03-20 19:24:38 +0100
committerChristian Tismer <tismer@stackless.com>2021-05-17 10:22:19 +0200
commitc4b077486f2f85ec15fa9f75b6a8e34ce976f180 (patch)
tree962e6f4a44738c6a2ae6bcde8de0f5d5cddfd96f /sources/pyside-tools/pyside_tool.py
parente9dbf86de7741a59c776c29a5821cad06a177804 (diff)
Turn generate_pyi into a general pyi_generator tool, finish
After the new tool has been created, we can now produce a Shiboken.pyi file automatically and make the PySide pyi files more complete. The Shiboken internal objects are now published, and we no longer need a fake Shiboken.Object . We can continue here a bit, maybe in another commit. Pick-to: 6.1 Task-number: PYSIDE-1415 Change-Id: I9ba9336dbffa200ac519968519ee9381dd5cad84 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside-tools/pyside_tool.py')
-rw-r--r--sources/pyside-tools/pyside_tool.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/pyside-tools/pyside_tool.py b/sources/pyside-tools/pyside_tool.py
index 0e2275c06..6a47d3632 100644
--- a/sources/pyside-tools/pyside_tool.py
+++ b/sources/pyside-tools/pyside_tool.py
@@ -128,5 +128,13 @@ def designer():
qt_tool_wrapper("designer", sys.argv[1:])
+def genpyi():
+ pyside_dir = Path(__file__).resolve().parents[1]
+ support = pyside_dir / "support"
+ cmd = support / "generate_pyi.py"
+ command = [sys.executable, os.fspath(cmd)] + sys.argv[1:]
+ sys.exit(subprocess.call(command))
+
+
if __name__ == "__main__":
main()