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 |