Toolbox/Startup.py

changeset 3656
441956d8fce5
parent 3621
15f23ed3f216
child 3670
f0cb7579c0b4
equal deleted inserted replaced
3654:ffeb85cdc72d 3656:441956d8fce5
10 from __future__ import unicode_literals 10 from __future__ import unicode_literals
11 11
12 import os 12 import os
13 import sys 13 import sys
14 14
15 from PyQt4.QtCore import QTranslator, QLocale, QLibraryInfo, QDir, \ 15 from PyQt5.QtCore import QTranslator, QLocale, QLibraryInfo, QDir, \
16 QTextCodec, qVersion 16 QTextCodec, qVersion
17 from PyQt4.QtGui import QApplication 17 from PyQt5.QtWidgets import QApplication
18 18
19 from E5Gui.E5Application import E5Application 19 from E5Gui.E5Application import E5Application
20 20
21 import Globals 21 import Globals
22 22
136 def setLibraryPaths(): 136 def setLibraryPaths():
137 """ 137 """
138 Module function to set the Qt library paths correctly for windows systems. 138 Module function to set the Qt library paths correctly for windows systems.
139 """ 139 """
140 if Globals.isWindowsPlatform(): 140 if Globals.isWindowsPlatform():
141 libPath = os.path.join(Globals.getPyQt4ModulesDirectory(), "plugins") 141 libPath = os.path.join(Globals.getPyQt5ModulesDirectory(), "plugins")
142 if os.path.exists(libPath): 142 if os.path.exists(libPath):
143 libPath = QDir.fromNativeSeparators(libPath) 143 libPath = QDir.fromNativeSeparators(libPath)
144 libraryPaths = QApplication.libraryPaths() 144 libraryPaths = QApplication.libraryPaths()
145 if libPath not in libraryPaths: 145 if libPath not in libraryPaths:
146 libraryPaths.insert(0, libPath) 146 libraryPaths.insert(0, libPath)

eric ide

mercurial