diff -r 0b936ff1bbb9 -r a2bc06a54d9d src/eric7/Globals/__init__.py --- a/src/eric7/Globals/__init__.py Sun Nov 06 11:22:39 2022 +0100 +++ b/src/eric7/Globals/__init__.py Mon Nov 07 17:19:58 2022 +0100 @@ -298,8 +298,6 @@ @return path to the PyQt6 modules directory @rtype str """ - import sysconfig - pyqtPath = os.path.join(sysconfig.get_path("platlib"), "PyQt6") if os.path.exists(pyqtPath): return pyqtPath @@ -317,6 +315,7 @@ @rtype str """ from eric7 import Preferences + from eric7.EricWidgets.EricApplication import ericApp toolsPath = "" @@ -332,8 +331,6 @@ if not toolsPath: program = "pylupdate{0}".format(version) if venvName: - from eric7.EricWidgets.EricApplication import ericApp - venvManager = ericApp().getObject("VirtualEnvManager") dirName = venvManager.getVirtualenvDirectory(venvName) else: @@ -384,7 +381,7 @@ if not binPath: with contextlib.suppress(ImportError): # if qt6-applications is not installed just go to the next step - import qt6_applications + import qt6_applications # __IGNORE_WARNING_I10__ if libexec: binPath = os.path.join( @@ -620,9 +617,9 @@ @rtype str """ try: - from eric7.eric7config import getConfig + from eric7.eric7config import getConfig # __IGNORE_WARNING_I101__ except ImportError: - from eric7config import getConfig + from eric7config import getConfig # __IGNORE_WARNING_I10__ scriptPath = os.path.join(getConfig("ericDir"), "Tools", "webBrowserSupport.py") proc = QProcess()