eric6.py

changeset 3670
f0cb7579c0b4
parent 3667
c9694cc027be
child 3708
4fbb91fb6a31
equal deleted inserted replaced
3669:ac84ac3c0f05 3670:f0cb7579c0b4
3 3
4 # Copyright (c) 2002 - 2014 Detlev Offenbach <detlev@die-offenbachs.de> 4 # Copyright (c) 2002 - 2014 Detlev Offenbach <detlev@die-offenbachs.de>
5 # 5 #
6 6
7 """ 7 """
8 Eric5 Python IDE. 8 Eric6 Python IDE.
9 9
10 This is the main Python script that performs the necessary initialization 10 This is the main Python script that performs the necessary initialization
11 of the IDE and starts the Qt event loop. 11 of the IDE and starts the Qt event loop.
12 """ 12 """
13 13
89 break 89 break
90 if len(sys.argv) > 1: 90 if len(sys.argv) > 1:
91 client.processArgs(sys.argv[1:]) 91 client.processArgs(sys.argv[1:])
92 sys.exit(0) 92 sys.exit(0)
93 elif res < 0: 93 elif res < 0:
94 print("eric5: {0}".format(client.errstr())) 94 print("eric6: {0}".format(client.errstr()))
95 sys.exit(res) 95 sys.exit(res)
96 96
97 97
98 def excepthook(excType, excValue, tracebackobj): 98 def excepthook(excType, excValue, tracebackobj):
99 """ 99 """
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()

eric ide

mercurial