Toolbox/Startup.py

branch
Py2 comp.
changeset 2677
3d4277929fb3
parent 2525
8b507a9a2d40
parent 2614
9c49b4419ea7
child 2791
a9577f248f04
equal deleted inserted replaced
2670:e60ea6cb8e11 2677:3d4277929fb3
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)

eric ide

mercurial