Utilities/Startup.py

changeset 263
2b328d503567
parent 107
918a6be6f051
child 265
5805c2e1415b
equal deleted inserted replaced
258:9402d145020d 263:2b328d503567
199 if the last window was closed (boolean) 199 if the last window was closed (boolean)
200 """ 200 """
201 handleArgs(argv, appinfo) 201 handleArgs(argv, appinfo)
202 app = E5Application(argv) 202 app = E5Application(argv)
203 app.setQuitOnLastWindowClosed(quitOnLastWindowClosed) 203 app.setQuitOnLastWindowClosed(quitOnLastWindowClosed)
204
205 if Utilities.isWindowsPlatform():
206 libPath = os.path.join(Utilities.getPythonModulesDirectory(),
207 "PyQt", "plugins")
208 if os.path.exists(libPath):
209 libPath = Utilities.fromNativeSeparators(libPath)
210 libraryPaths = QApplication.libraryPaths()
211 if libPath not in libraryPaths:
212 libraryPaths.insert(0, libPath)
213 QApplication.setLibraryPaths(libraryPaths)
204 214
205 initializeResourceSearchPath() 215 initializeResourceSearchPath()
206 QApplication.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) 216 QApplication.setWindowIcon(UI.PixmapCache.getIcon("eric.png"))
207 217
208 qt4TransDir = Preferences.getQt4TranslationsDir() 218 qt4TransDir = Preferences.getQt4TranslationsDir()

eric ide

mercurial