Toolbox/Startup.py

branch
5_3_x
changeset 2611
dd77cc80e343
parent 2302
f29e9405c851
child 2614
9c49b4419ea7
child 3163
9f50365a0870
equal deleted inserted replaced
2604:3f785deb97eb 2611:dd77cc80e343
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)

eric ide

mercurial