eric6.py

changeset 4714
03c5936c79e5
parent 4712
a910b5ae47c9
child 4975
c71c0afee067
equal deleted inserted replaced
4712:a910b5ae47c9 4714:03c5936c79e5
315 # is there a set of filenames or options on the command line, 315 # is there a set of filenames or options on the command line,
316 # if so, pass them to the UI 316 # if so, pass them to the UI
317 if len(sys.argv) > 1: 317 if len(sys.argv) > 1:
318 args = sys.argv[1:] 318 args = sys.argv[1:]
319 319
320 # TODO: this code is misleading - it applies to Qt5 as well
321 # get the Qt4 translations directory 320 # get the Qt4 translations directory
322 qt4TransDir = Preferences.getQt4TranslationsDir() 321 qtTransDir = Preferences.getQtTranslationsDir()
323 if not qt4TransDir: 322 if not qtTransDir:
324 qt4TransDir = QLibraryInfo.location(QLibraryInfo.TranslationsPath) 323 qtTransDir = QLibraryInfo.location(QLibraryInfo.TranslationsPath)
325 324
326 # Load translation files and install them 325 # Load translation files and install them
327 loc = Startup.loadTranslators(qt4TransDir, app, ("qscintilla",)) 326 loc = Startup.loadTranslators(qtTransDir, app, ("qscintilla",))
328 327
329 # Initialize SSL stuff 328 # Initialize SSL stuff
330 from E5Network.E5SslUtilities import initSSL 329 from E5Network.E5SslUtilities import initSSL
331 initSSL() 330 initSSL()
332 331

eric ide

mercurial