diff options
Diffstat (limited to 'sources/pyside-tools/pyside_tool.py')
| -rw-r--r-- | sources/pyside-tools/pyside_tool.py | 8 |
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() |
