131 def setLibraryPaths(): |
131 def setLibraryPaths(): |
132 """ |
132 """ |
133 Module function to set the Qt library paths correctly for windows systems. |
133 Module function to set the Qt library paths correctly for windows systems. |
134 """ |
134 """ |
135 if Globals.isWindowsPlatform(): |
135 if Globals.isWindowsPlatform(): |
136 from PyQt4 import pyqtconfig |
136 libPath = os.path.join(Globals.getPyQt4ModulesDirectory(), "plugins") |
137 libPath = os.path.join(pyqtconfig._pkg_config["pyqt_mod_dir"], "plugins") |
|
138 if os.path.exists(libPath): |
137 if os.path.exists(libPath): |
139 libPath = QDir.fromNativeSeparators(libPath) |
138 libPath = QDir.fromNativeSeparators(libPath) |
140 libraryPaths = QApplication.libraryPaths() |
139 libraryPaths = QApplication.libraryPaths() |
141 if libPath not in libraryPaths: |
140 if libPath not in libraryPaths: |
142 libraryPaths.insert(0, libPath) |
141 libraryPaths.insert(0, libPath) |