15 |
15 |
16 from eric7 import Globals |
16 from eric7 import Globals |
17 from eric7.EricGui import EricPixmapCache |
17 from eric7.EricGui import EricPixmapCache |
18 from eric7.EricWidgets.EricApplication import EricApplication |
18 from eric7.EricWidgets.EricApplication import EricApplication |
19 from eric7.Globals import getConfig |
19 from eric7.Globals import getConfig |
|
20 from eric7.SystemUtilities import QtUtilities |
20 |
21 |
21 application = None |
22 application = None |
22 |
23 |
23 |
24 |
24 def usage(appinfo, optlen=12): |
25 def usage(appinfo, optlen=12): |
158 def setLibraryPaths(): |
159 def setLibraryPaths(): |
159 """ |
160 """ |
160 Module function to set the Qt library paths correctly. |
161 Module function to set the Qt library paths correctly. |
161 """ |
162 """ |
162 libPaths = ( |
163 libPaths = ( |
163 os.path.join(Globals.getPyQt6ModulesDirectory(), "plugins"), |
164 os.path.join(QtUtilities.getPyQt6ModulesDirectory(), "plugins"), |
164 os.path.join(Globals.getPyQt6ModulesDirectory(), "Qt6", "plugins"), |
165 os.path.join(QtUtilities.getPyQt6ModulesDirectory(), "Qt6", "plugins"), |
165 ) |
166 ) |
166 |
167 |
167 libraryPaths = QApplication.libraryPaths() |
168 libraryPaths = QApplication.libraryPaths() |
168 for libPath in libPaths: |
169 for libPath in libPaths: |
169 if os.path.exists(libPath): |
170 if os.path.exists(libPath): |