eric5.py

changeset 107
918a6be6f051
parent 97
c4086afea02b
child 128
13e96bd0f5a5
equal deleted inserted replaced
106:94c7385cf685 107:918a6be6f051
205 # is there a set of filenames or options on the command line, 205 # is there a set of filenames or options on the command line,
206 # if so, pass them to the UI 206 # if so, pass them to the UI
207 if len(sys.argv) > 1: 207 if len(sys.argv) > 1:
208 args = sys.argv[1:] 208 args = sys.argv[1:]
209 209
210 # Set the applications string encoding
211 try:
212 sys.setappdefaultencoding(Preferences.getSystem("StringEncoding"))
213 except AttributeError:
214 pass
215
216 # get the Qt4 translations directory 210 # get the Qt4 translations directory
217 qt4TransDir = Preferences.getQt4TranslationsDir() 211 qt4TransDir = Preferences.getQt4TranslationsDir()
218 if not qt4TransDir: 212 if not qt4TransDir:
219 qt4TransDir = QLibraryInfo.location(QLibraryInfo.TranslationsPath) 213 qt4TransDir = QLibraryInfo.location(QLibraryInfo.TranslationsPath)
220 214

eric ide

mercurial