161 def setLibraryPaths(): |
161 def setLibraryPaths(): |
162 """ |
162 """ |
163 Module function to set the Qt library paths correctly for windows systems. |
163 Module function to set the Qt library paths correctly for windows systems. |
164 """ |
164 """ |
165 if Globals.isWindowsPlatform(): |
165 if Globals.isWindowsPlatform(): |
166 libPath = os.path.join(Globals.getPyQt5ModulesDirectory(), "plugins") |
166 libPath = os.path.join(Globals.getPyQt6ModulesDirectory(), "plugins") |
167 if os.path.exists(libPath): |
167 if os.path.exists(libPath): |
168 libPath = QDir.fromNativeSeparators(libPath) |
168 libPath = QDir.fromNativeSeparators(libPath) |
169 libraryPaths = QApplication.libraryPaths() |
169 libraryPaths = QApplication.libraryPaths() |
170 if libPath not in libraryPaths: |
170 if libPath not in libraryPaths: |
171 libraryPaths.insert(0, libPath) |
171 libraryPaths.insert(0, libPath) |