116 def initializeResourceSearchPath(application): |
116 def initializeResourceSearchPath(application): |
117 """ |
117 """ |
118 Module function to initialize the default mime source factory. |
118 Module function to initialize the default mime source factory. |
119 |
119 |
120 @param application reference to the application object |
120 @param application reference to the application object |
121 @type E5Application |
121 @type EricApplication |
122 """ |
122 """ |
123 import Preferences |
123 import Preferences |
124 |
124 |
125 defaultIconPaths = getDefaultIconPaths(application) |
125 defaultIconPaths = getDefaultIconPaths(application) |
126 iconPaths = Preferences.getIcons("Path") |
126 iconPaths = Preferences.getIcons("Path") |
251 |
251 |
252 handleArgs(argv, appinfo) |
252 handleArgs(argv, appinfo) |
253 if app is None: |
253 if app is None: |
254 # set the library paths for plugins |
254 # set the library paths for plugins |
255 setLibraryPaths() |
255 setLibraryPaths() |
256 app = E5Application(argv) |
256 app = EricApplication(argv) |
257 application = app |
257 application = app |
258 app.setQuitOnLastWindowClosed(quitOnLastWindowClosed) |
258 app.setQuitOnLastWindowClosed(quitOnLastWindowClosed) |
259 |
259 |
260 # the following code depends upon a valid application object |
260 # the following code depends upon a valid application object |
261 import Preferences |
261 import Preferences |
280 if raiseIt: |
280 if raiseIt: |
281 w.raise_() |
281 w.raise_() |
282 |
282 |
283 if installErrorHandler: |
283 if installErrorHandler: |
284 # generate a graphical error handler |
284 # generate a graphical error handler |
285 from E5Gui import E5ErrorMessage |
285 from E5Gui import EricErrorMessage |
286 eMsg = E5ErrorMessage.qtHandler() |
286 eMsg = EricErrorMessage.qtHandler() |
287 eMsg.setMinimumSize(600, 400) |
287 eMsg.setMinimumSize(600, 400) |
288 |
288 |
289 return app.exec() |
289 return app.exec() |
290 |
290 |
291 # |
291 # |