129 def setLibraryPaths(): |
129 def setLibraryPaths(): |
130 """ |
130 """ |
131 Module function to set the Qt library paths correctly for windows systems. |
131 Module function to set the Qt library paths correctly for windows systems. |
132 """ |
132 """ |
133 if Globals.isWindowsPlatform(): |
133 if Globals.isWindowsPlatform(): |
134 libPath = os.path.join(Globals.getPythonModulesDirectory(), "PyQt4", "plugins") |
134 libPath = os.path.join(Globals.getPyQt4ModulesDirectory(), "plugins") |
135 if os.path.exists(libPath): |
135 if os.path.exists(libPath): |
136 libPath = QDir.fromNativeSeparators(libPath) |
136 libPath = QDir.fromNativeSeparators(libPath) |
137 libraryPaths = QApplication.libraryPaths() |
137 libraryPaths = QApplication.libraryPaths() |
138 if libPath not in libraryPaths: |
138 if libPath not in libraryPaths: |
139 libraryPaths.insert(0, libPath) |
139 libraryPaths.insert(0, libPath) |