eric7/Utilities/__init__.py

branch
eric7-maintenance
changeset 9192
a763d57e23bc
parent 9111
4ac66b6c33a4
parent 9167
2d2b9a26e904
equal deleted inserted replaced
9137:bd90cbe0b7d2 9192:a763d57e23bc
1316 @type str 1316 @type str
1317 @return file names of the corresponding test file 1317 @return file names of the corresponding test file
1318 @rtype list of str 1318 @rtype list of str
1319 """ 1319 """
1320 dn, fn = os.path.split(fn) 1320 dn, fn = os.path.split(fn)
1321 fn, ext = os.psth.splitext(fn) 1321 fn, ext = os.path.splitext(fn)
1322 prefixes = ["test", "test_"] 1322 prefixes = ["test", "test_"]
1323 postfixes = ["_test"] 1323 postfixes = ["_test"]
1324 return [ 1324 return [
1325 os.path.join(dn, "{0}{1}{2}".format(prefix, fn, ext)) 1325 os.path.join(dn, "{0}{1}{2}".format(prefix, fn, ext))
1326 for prefix in prefixes 1326 for prefix in prefixes
1979 info.append(" PyQt6-QScintilla {0}".format(QSCINTILLA_VERSION_STR)) 1979 info.append(" PyQt6-QScintilla {0}".format(QSCINTILLA_VERSION_STR))
1980 info.append(" sip {0}".format(sip_version_str)) 1980 info.append(" sip {0}".format(sip_version_str))
1981 with contextlib.suppress(ImportError): 1981 with contextlib.suppress(ImportError):
1982 from PyQt6 import QtWebEngineWidgets # __IGNORE_WARNING__ 1982 from PyQt6 import QtWebEngineWidgets # __IGNORE_WARNING__
1983 from WebBrowser.Tools import WebBrowserTools 1983 from WebBrowser.Tools import WebBrowserTools
1984 chromeVersion = WebBrowserTools.getWebEngineVersions()[0] 1984 chromiumVersion, chromiumSecurityVersion = (
1985 info.append(" WebEngine {0}".format(chromeVersion)) 1985 WebBrowserTools.getWebEngineVersions()[0:2]
1986 )
1987 info.append(" WebEngine {0}".format(chromiumVersion))
1988 if chromiumSecurityVersion:
1989 info.append(" (Security) {0}".format(chromiumSecurityVersion))
1986 info.append(" {0} {1}".format(Program, Version)) 1990 info.append(" {0} {1}".format(Program, Version))
1987 info.append("") 1991 info.append("")
1988 info.append("Platform: {0}".format(sys.platform)) 1992 info.append("Platform: {0}".format(sys.platform))
1989 info.append(sys.version) 1993 info.append(sys.version)
1990 desktop = desktopName() 1994 desktop = desktopName()

eric ide

mercurial