107 from UI.Info import BugAddress |
107 from UI.Info import BugAddress |
108 import Utilities |
108 import Utilities |
109 import Globals |
109 import Globals |
110 |
110 |
111 separator = '-' * 80 |
111 separator = '-' * 80 |
112 logFile = os.path.join(Globals.getConfigDir(), "eric5_error.log") |
112 logFile = os.path.join(Globals.getConfigDir(), "eric6_error.log") |
113 notice = \ |
113 notice = \ |
114 """An unhandled exception occurred. Please report the problem\n"""\ |
114 """An unhandled exception occurred. Please report the problem\n"""\ |
115 """using the error reporting dialog or via email to <{0}>.\n"""\ |
115 """using the error reporting dialog or via email to <{0}>.\n"""\ |
116 """A log has been written to "{1}".\n\nError information:\n""".format( |
116 """A log has been written to "{1}".\n\nError information:\n""".format( |
117 BugAddress, logFile) |
117 BugAddress, logFile) |
202 "indicate that there are options for the program to be debugged"), |
202 "indicate that there are options for the program to be debugged"), |
203 ("", |
203 ("", |
204 "(everything after that is considered arguments for this program)") |
204 "(everything after that is considered arguments for this program)") |
205 ] |
205 ] |
206 appinfo = AppInfo.makeAppInfo(sys.argv, |
206 appinfo = AppInfo.makeAppInfo(sys.argv, |
207 "Eric5", |
207 "Eric6", |
208 "[project | files... [--] [debug-options]]", |
208 "[project | files... [--] [debug-options]]", |
209 "A Python IDE", |
209 "A Python IDE", |
210 options) |
210 options) |
211 |
211 |
212 if not Globals.checkBlacklistedVersions(): |
212 if not Globals.checkBlacklistedVersions(): |
276 qt4TransDir = QLibraryInfo.location(QLibraryInfo.TranslationsPath) |
276 qt4TransDir = QLibraryInfo.location(QLibraryInfo.TranslationsPath) |
277 |
277 |
278 # Load translation files and install them |
278 # Load translation files and install them |
279 loc = Startup.loadTranslators(qt4TransDir, app, ("qscintilla",)) |
279 loc = Startup.loadTranslators(qt4TransDir, app, ("qscintilla",)) |
280 |
280 |
281 splash.showMessage(QCoreApplication.translate("eric5", "Starting...")) |
281 splash.showMessage(QCoreApplication.translate("eric6", "Starting...")) |
282 # We can only import these after creating the E5Application because they |
282 # We can only import these after creating the E5Application because they |
283 # make Qt calls that need the E5Application to exist. |
283 # make Qt calls that need the E5Application to exist. |
284 from UI.UserInterface import UserInterface |
284 from UI.UserInterface import UserInterface |
285 |
285 |
286 splash.showMessage( |
286 splash.showMessage( |
287 QCoreApplication.translate("eric5", "Generating Main Window...")) |
287 QCoreApplication.translate("eric6", "Generating Main Window...")) |
288 try: |
288 try: |
289 mainWindow = UserInterface(app, loc, splash, pluginFile, noopen, |
289 mainWindow = UserInterface(app, loc, splash, pluginFile, noopen, |
290 restartArgs) |
290 restartArgs) |
291 app.lastWindowClosed.connect(app.quit) |
291 app.lastWindowClosed.connect(app.quit) |
292 mainWindow.show() |
292 mainWindow.show() |