src/eric7/eric7_ide.py

branch
eric7
changeset 10760
f702f6781b05
parent 10716
11cdcc824469
child 10789
d3fa6a6b919e
equal deleted inserted replaced
10758:1fd5ea95c0e3 10760:f702f6781b05
198 198
199 if args.debug: 199 if args.debug:
200 logging.basicConfig( 200 logging.basicConfig(
201 filename=os.path.join(Globals.getConfigDir(), "eric7_debug.txt"), 201 filename=os.path.join(Globals.getConfigDir(), "eric7_debug.txt"),
202 filemode="w", 202 filemode="w",
203 format="[%(asctime)s] %(levelname)s - %(message)s", 203 format="[%(asctime)s] %(levelname)s: %(name)s:%(lineno)d - %(message)s",
204 level=logging.DEBUG, 204 level=logging.DEBUG,
205 ) 205 )
206 206
207 if args.settings: 207 if args.settings:
208 from PyQt6.QtCore import QSettings 208 from PyQt6.QtCore import QSettings
355 scheme.setFlags(QWebEngineUrlScheme.Flag.SecureScheme) 355 scheme.setFlags(QWebEngineUrlScheme.Flag.SecureScheme)
356 QWebEngineUrlScheme.registerScheme(scheme) 356 QWebEngineUrlScheme.registerScheme(scheme)
357 357
358 app = EricApplication(args) 358 app = EricApplication(args)
359 359
360 logging.debug("Importing Preferences") 360 logging.getLogger(__name__).debug("Importing Preferences")
361 from eric7 import Preferences # __IGNORE_WARNING_I101__ 361 from eric7 import Preferences # __IGNORE_WARNING_I101__
362 362
363 if Preferences.getUI("SingleApplicationMode"): 363 if Preferences.getUI("SingleApplicationMode"):
364 handleSingleApplication() 364 handleSingleApplication()
365 365
404 from eric7.EricNetwork.EricSslUtilities import initSSL # __IGNORE_WARNING_I101__ 404 from eric7.EricNetwork.EricSslUtilities import initSSL # __IGNORE_WARNING_I101__
405 405
406 initSSL() 406 initSSL()
407 407
408 splash.showMessage(QCoreApplication.translate("eric7_ide", "Starting...")) 408 splash.showMessage(QCoreApplication.translate("eric7_ide", "Starting..."))
409 logging.getLogger(__name__).debug(
410 QCoreApplication.translate("eric7_ide", "Starting...")
411 )
412
409 # We can only import these after creating the EricApplication because they 413 # We can only import these after creating the EricApplication because they
410 # make Qt calls that need the EricApplication to exist. 414 # make Qt calls that need the EricApplication to exist.
411 from eric7.UI.UserInterface import UserInterface # __IGNORE_WARNING_I101__ 415 from eric7.UI.UserInterface import UserInterface # __IGNORE_WARNING_I101__
412 416
413 splash.showMessage( 417 splash.showMessage(
418 QCoreApplication.translate("eric7_ide", "Generating Main Window...")
419 )
420 logging.getLogger(__name__).debug(
414 QCoreApplication.translate("eric7_ide", "Generating Main Window...") 421 QCoreApplication.translate("eric7_ide", "Generating Main Window...")
415 ) 422 )
416 mainWindow = UserInterface( 423 mainWindow = UserInterface(
417 app, 424 app,
418 loc, 425 loc,
441 eMsg.setMinimumSize(600, 400) 448 eMsg.setMinimumSize(600, 400)
442 449
443 # start the event loop 450 # start the event loop
444 inMainLoop = True 451 inMainLoop = True
445 res = app.exec() 452 res = app.exec()
446 logging.debug("Shutting down, result %d", res) 453 logging.getLogger(__name__).debug("Shutting down, result %d", res)
447 logging.shutdown() 454 logging.shutdown()
448 sys.exit(res) 455 sys.exit(res)
449 456
450 457
451 if __name__ == "__main__": 458 if __name__ == "__main__":

eric ide

mercurial