Add Qt library/data paths to version info
This commit is contained in:
parent
01db59ff36
commit
5b4b226186
@ -28,7 +28,8 @@ import subprocess
|
||||
import importlib
|
||||
import collections
|
||||
|
||||
from PyQt5.QtCore import QT_VERSION_STR, PYQT_VERSION_STR, qVersion
|
||||
from PyQt5.QtCore import (QT_VERSION_STR, PYQT_VERSION_STR, qVersion,
|
||||
QLibraryInfo)
|
||||
from PyQt5.QtNetwork import QSslSocket
|
||||
from PyQt5.QtWidgets import QApplication
|
||||
|
||||
@ -278,6 +279,10 @@ def version():
|
||||
platform.architecture()[0]),
|
||||
'Frozen: {}'.format(hasattr(sys, 'frozen')),
|
||||
"Imported from {}".format(importpath),
|
||||
"Qt library executable path: {}, data path: {}".format(
|
||||
QLibraryInfo.location(QLibraryInfo.LibraryExecutablesPath),
|
||||
QLibraryInfo.location(QLibraryInfo.DataPath)
|
||||
)
|
||||
]
|
||||
lines += _os_info()
|
||||
|
||||
|
@ -676,6 +676,7 @@ def test_version_output(git_commit, frozen, style, equal_qt, with_webkit,
|
||||
else usertypes.Backend.QtWebEngine),
|
||||
'qtutils.is_qtwebkit_ng': (lambda v:
|
||||
True if with_webkit == 'ng' else False),
|
||||
'QLibraryInfo.location': (lambda _loc: 'QT PATH')
|
||||
}
|
||||
|
||||
for attr, val in patches.items():
|
||||
@ -703,6 +704,7 @@ def test_version_output(git_commit, frozen, style, equal_qt, with_webkit,
|
||||
Platform: PLATFORM, ARCHITECTURE
|
||||
Frozen: {frozen}
|
||||
Imported from {import_path}
|
||||
Qt library executable path: QT PATH, data path: QT PATH
|
||||
OS INFO 1
|
||||
OS INFO 2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user