SF.net SVN: fclient:[701] trunk/fclient/src/fclient/lib/qt4ex/lib/tools.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-07-21 10:19:23
|
Revision: 701
http://fclient.svn.sourceforge.net/fclient/?rev=701&view=rev
Author: jUrner
Date: 2008-07-21 10:18:49 +0000 (Mon, 21 Jul 2008)
Log Message:
-----------
versionInfo() returns now sip version aswell
Modified Paths:
--------------
trunk/fclient/src/fclient/lib/qt4ex/lib/tools.py
Modified: trunk/fclient/src/fclient/lib/qt4ex/lib/tools.py
===================================================================
--- trunk/fclient/src/fclient/lib/qt4ex/lib/tools.py 2008-07-21 10:15:50 UTC (rev 700)
+++ trunk/fclient/src/fclient/lib/qt4ex/lib/tools.py 2008-07-21 10:18:49 UTC (rev 701)
@@ -14,11 +14,18 @@
"""
import sys
from PyQt4.QtCore import qVersion, PYQT_VERSION_STR
+ try:
+ import sipconfig
+ sipVersion = sipconfig.Configuration().sip_version_str
+ except ImportError:
+ sipVersion = 'unknown'
+
return (
('Platform', sys.platform),
('Python Version', sys.version.split()[0]),
('Qt Version', qVersion()),
('PyQt Version', PYQT_VERSION_STR),
+ ('Sip Version', sipVersion)
)
#***************************************************************
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|