218 window (boolean) |
220 window (boolean) |
219 @keyparam installErrorHandler flag indicating to install an error |
221 @keyparam installErrorHandler flag indicating to install an error |
220 handler dialog (boolean) |
222 handler dialog (boolean) |
221 @return exit result (integer) |
223 @return exit result (integer) |
222 """ |
224 """ |
|
225 global application |
|
226 |
|
227 if "__PYVENV_LAUNCHER__" in os.environ: |
|
228 del os.environ["__PYVENV_LAUNCHER__"] |
|
229 |
223 handleArgs(argv, appinfo) |
230 handleArgs(argv, appinfo) |
224 if app is None: |
231 if app is None: |
225 # set the library paths for plugins |
232 # set the library paths for plugins |
226 setLibraryPaths() |
233 setLibraryPaths() |
227 app = E5Application(argv) |
234 app = E5Application(argv) |
|
235 application = app |
228 app.setQuitOnLastWindowClosed(quitOnLastWindowClosed) |
236 app.setQuitOnLastWindowClosed(quitOnLastWindowClosed) |
229 |
237 |
230 # the following code depends upon a valid application object |
238 # the following code depends upon a valid application object |
231 import Preferences |
239 import Preferences |
232 |
240 |