--- a/eric7/Globals/__init__.py Sat Jul 10 11:41:13 2021 +0200 +++ b/eric7/Globals/__init__.py Sat Jul 10 12:31:31 2021 +0200 @@ -257,15 +257,16 @@ return distutils.sysconfig.get_python_lib(True) -def getPyQt5ModulesDirectory(): +# TODO: change this for PyQt6 +def getPyQt6ModulesDirectory(): """ - Function to determine the path to PyQt5 modules directory. + Function to determine the path to PyQt6 modules directory. - @return path to the PyQt5 modules directory (string) + @return path to the PyQt6 modules directory (string) """ import distutils.sysconfig - pyqtPath = os.path.join(distutils.sysconfig.get_python_lib(True), "PyQt5") + pyqtPath = os.path.join(distutils.sysconfig.get_python_lib(True), "PyQt6") if os.path.exists(pyqtPath): return pyqtPath