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 from PyQt4 import pyqtconfig |
134 libPath = os.path.join(Globals.getPythonModulesDirectory(), "PyQt4", "plugins") |
135 libPath = os.path.join(pyqtconfig._pkg_config["pyqt_mod_dir"], "plugins") |
|
136 if os.path.exists(libPath): |
135 if os.path.exists(libPath): |
137 libPath = QDir.fromNativeSeparators(libPath) |
136 libPath = QDir.fromNativeSeparators(libPath) |
138 libraryPaths = QApplication.libraryPaths() |
137 libraryPaths = QApplication.libraryPaths() |
139 if libPath not in libraryPaths: |
138 if libPath not in libraryPaths: |
140 libraryPaths.insert(0, libPath) |
139 libraryPaths.insert(0, libPath) |