File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1865,19 +1865,20 @@ def convert_qt_version(self, version):
1865
1865
1866
1866
def check_requirements (self ):
1867
1867
try :
1868
- from PyQt4 import pyqtconfig
1868
+ from PyQt4 import QtCore
1869
1869
except ImportError :
1870
1870
raise CheckFailed ("PyQt4 not found" )
1871
1871
# Import may still be broken for our python
1872
1872
try :
1873
- qtconfig = pyqtconfig .Configuration ()
1873
+ qt_version = QtCore .QT_VERSION
1874
+ pyqt_version_str = QtCore .PYQT_VERSION_STR
1874
1875
except AttributeError :
1875
1876
raise CheckFailed ('PyQt4 not correctly imported' )
1876
1877
BackendAgg .force = True
1877
1878
return ("Qt: %s, PyQt4: %s" %
1878
1879
(self .convert_qt_version (
1879
- qtconfig . qt_version ),
1880
- qtconfig . pyqt_version_str ))
1880
+ qt_version ),
1881
+ pyqt_version_str ))
1881
1882
1882
1883
1883
1884
class BackendPySide (OptionalBackendPackage ):
You can’t perform that action at this time.
0 commit comments