diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-10-06 11:43:55 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:56:12 -0300 |
commit | 18383549d634d6cb8c52b620426bd8f0543774bc (patch) | |
tree | 404e4bfc2d4ed8319206ba4d4649a08ac7fd7c40 /PySide | |
parent | 6869a49bc389166b307b56efa3a2677325c86247 (diff) |
Updated __init__.py file to works with python 2.x and 3.x
Diffstat (limited to 'PySide')
-rw-r--r-- | PySide/__init__.py.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/PySide/__init__.py.in b/PySide/__init__.py.in index 40731a823..9536718f8 100644 --- a/PySide/__init__.py.in +++ b/PySide/__init__.py.in @@ -1,5 +1,9 @@ +import sys + __all__ = ['QtCore', 'QtGui', 'QtNetwork', 'QtOpenGL', 'QtSql', 'QtSvg', 'QtTest', 'QtWebKit', 'QtScript'] -import private + +if sys.version_info[0] < 3: + import private __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@) |