12 """ |
12 """ |
13 |
13 |
14 from __future__ import unicode_literals |
14 from __future__ import unicode_literals |
15 |
15 |
16 import sys |
16 import sys |
|
17 import os |
|
18 |
|
19 originalPathString = os.getenv("PATH") |
17 |
20 |
18 # generate list of arguments to be remembered for a restart |
21 # generate list of arguments to be remembered for a restart |
19 restartArgsList = ["--no-splash", "--plugin", "--debug", "--config", |
22 restartArgsList = ["--no-splash", "--plugin", "--debug", "--config", |
20 "--pyqt4", "--settings", "--disable-crash", |
23 "--pyqt4", "--settings", "--disable-crash", |
21 "--disable-plugin"] |
24 "--disable-plugin"] |
394 from UI.UserInterface import UserInterface |
396 from UI.UserInterface import UserInterface |
395 |
397 |
396 splash.showMessage( |
398 splash.showMessage( |
397 QCoreApplication.translate("eric6", "Generating Main Window...")) |
399 QCoreApplication.translate("eric6", "Generating Main Window...")) |
398 mainWindow = UserInterface(app, loc, splash, pluginFile, disabledPlugins, |
400 mainWindow = UserInterface(app, loc, splash, pluginFile, disabledPlugins, |
399 noopen, nocrash, disablecrash, restartArgs) |
401 noopen, nocrash, disablecrash, restartArgs, |
|
402 originalPathString) |
400 app.lastWindowClosed.connect(app.quit) |
403 app.lastWindowClosed.connect(app.quit) |
401 mainWindow.show() |
404 mainWindow.show() |
402 |
405 |
403 QTimer.singleShot(0, uiStartUp) |
406 QTimer.singleShot(0, uiStartUp) |
404 |
407 |