45 |
45 |
46 warnings.showwarning = __showwarning |
46 warnings.showwarning = __showwarning |
47 |
47 |
48 from codecs import BOM_UTF8, BOM_UTF16, BOM_UTF32 |
48 from codecs import BOM_UTF8, BOM_UTF16, BOM_UTF32 |
49 |
49 |
|
50 from PyQt6.Qsci import QSCINTILLA_VERSION_STR, QsciScintilla |
50 from PyQt6.QtCore import ( |
51 from PyQt6.QtCore import ( |
51 qVersion, |
|
52 PYQT_VERSION_STR, |
52 PYQT_VERSION_STR, |
53 QDir, |
|
54 QProcess, |
|
55 QByteArray, |
53 QByteArray, |
56 QCoreApplication, |
54 QCoreApplication, |
57 QCryptographicHash, |
55 QCryptographicHash, |
|
56 QDir, |
|
57 QProcess, |
|
58 qVersion, |
58 ) |
59 ) |
59 from PyQt6.Qsci import QSCINTILLA_VERSION_STR, QsciScintilla |
60 |
|
61 from eric7 import Preferences |
|
62 from eric7.EricWidgets.EricApplication import ericApp |
60 |
63 |
61 # import these methods into the Utilities namespace |
64 # import these methods into the Utilities namespace |
62 from eric7.Globals import ( # __IGNORE_WARNING__ |
65 from eric7.Globals import ( # __IGNORE_WARNING__ |
63 isWindowsPlatform, |
66 desktopName, |
|
67 getConfig, |
|
68 getConfigDir, |
|
69 getPyQt6ModulesDirectory, |
|
70 getPyQtToolsPath, |
|
71 getPythonExecutable, |
|
72 getPythonLibraryDirectory, |
|
73 getPythonScriptsDirectory, |
|
74 getQtBinariesPath, |
64 isLinuxPlatform, |
75 isLinuxPlatform, |
65 isMacPlatform, |
76 isMacPlatform, |
66 desktopName, |
77 isWindowsPlatform, |
|
78 qVersionTuple, |
67 sessionType, |
79 sessionType, |
68 getConfigDir, |
|
69 setConfigDir, |
80 setConfigDir, |
70 getPythonLibraryDirectory, |
|
71 getPythonScriptsDirectory, |
|
72 getPyQt6ModulesDirectory, |
|
73 getQtBinariesPath, |
|
74 getPyQtToolsPath, |
|
75 qVersionTuple, |
|
76 getPythonExecutable, |
|
77 ) |
81 ) |
78 |
82 from eric7.Plugins.CheckerPlugins.SyntaxChecker.SyntaxCheck import ( # __IGNORE_WARNING__ |
79 from eric7.EricWidgets.EricApplication import ericApp |
|
80 |
|
81 from eric7.UI.Info import Program, Version |
|
82 |
|
83 from eric7 import Preferences |
|
84 from eric7.Plugins.CheckerPlugins.SyntaxChecker.SyntaxCheck import ( |
|
85 # __IGNORE_WARNING__ |
|
86 normalizeCode, |
83 normalizeCode, |
87 ) |
84 ) |
88 |
85 from eric7.UI.Info import Program, Version |
89 from eric7.Globals import getConfig |
|
90 |
86 |
91 configDir = None |
87 configDir = None |
92 |
88 |
93 codingBytes_regexps = [ |
89 codingBytes_regexps = [ |
94 (5, re.compile(rb"""coding[:=]\s*([-\w_.]+)""")), |
90 (5, re.compile(rb"""coding[:=]\s*([-\w_.]+)""")), |
2070 info.append(" PyQt6-WebEngine not installed") |
2066 info.append(" PyQt6-WebEngine not installed") |
2071 info.append(" PyQt6-QScintilla {0}".format(QSCINTILLA_VERSION_STR)) |
2067 info.append(" PyQt6-QScintilla {0}".format(QSCINTILLA_VERSION_STR)) |
2072 info.append(" sip {0}".format(sip_version_str)) |
2068 info.append(" sip {0}".format(sip_version_str)) |
2073 with contextlib.suppress(ImportError): |
2069 with contextlib.suppress(ImportError): |
2074 from PyQt6 import QtWebEngineWidgets # __IGNORE_WARNING__ |
2070 from PyQt6 import QtWebEngineWidgets # __IGNORE_WARNING__ |
|
2071 |
2075 from eric7.WebBrowser.Tools import WebBrowserTools |
2072 from eric7.WebBrowser.Tools import WebBrowserTools |
2076 |
2073 |
2077 ( |
2074 ( |
2078 chromiumVersion, |
2075 chromiumVersion, |
2079 chromiumSecurityVersion, |
2076 chromiumSecurityVersion, |