From a21f1e8f15b53d943999882bdeadf628d4a25662 Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Tue, 27 Jun 2017 13:40:16 +0200 Subject: Create the __all__ variable correctly Now that we have the cmake variable "all_module_shortnames", it is very straightforward to produce a sensible __all__ variable in the PySide2 module. This is necessary to write an exhaustive test script for the new signature feature. Change-Id: Ib43d647593f0b1b848b9d17ff27fd47cfb5832cb Reviewed-by: Alexandru Croitor --- sources/pyside2/PySide2/__init__.py.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sources/pyside2/PySide2') diff --git a/sources/pyside2/PySide2/__init__.py.in b/sources/pyside2/PySide2/__init__.py.in index 5dd82ed9f..99deb35e2 100644 --- a/sources/pyside2/PySide2/__init__.py.in +++ b/sources/pyside2/PySide2/__init__.py.in @@ -1,4 +1,6 @@ -__all__ = ['QtCore', 'QtGui', 'QtNetwork', 'QtOpenGL', 'QtSql', 'QtSvg', 'QtTest', 'QtWebKit', 'QtScript'] +__all__ = list("Qt" + body for body in + "@all_module_shortnames@" + .split(";")) __version__ = "@BINDING_API_VERSION_FULL@" __version_info__ = (@BINDING_API_MAJOR_VERSION@, @BINDING_API_MINOR_VERSION@, @BINDING_API_MICRO_VERSION@, "@BINDING_API_RELEASE_LEVEL@", @BINDING_API_SERIAL@) -- cgit v1.2.3