34 "--settings", |
34 "--settings", |
35 ] |
35 ] |
36 restartArgs = [arg for arg in sys.argv[1:] if arg.split("=", 1)[0] in restartArgsList] |
36 restartArgs = [arg for arg in sys.argv[1:] if arg.split("=", 1)[0] in restartArgsList] |
37 |
37 |
38 try: |
38 try: |
39 from PyQt6.QtCore import qWarning, QLibraryInfo, QTimer, QCoreApplication |
39 from PyQt6.QtCore import QCoreApplication, QLibraryInfo, QTimer, qWarning |
40 except ImportError: |
40 except ImportError: |
41 try: |
41 try: |
42 from tkinter import messagebox |
42 from tkinter import messagebox |
43 except ImportError: |
43 except ImportError: |
44 sys.exit(100) |
44 sys.exit(100) |
143 |
143 |
144 @param excType exception type |
144 @param excType exception type |
145 @param excValue exception value |
145 @param excValue exception value |
146 @param tracebackobj traceback object |
146 @param tracebackobj traceback object |
147 """ |
147 """ |
|
148 from eric7 import Globals, Utilities |
148 from eric7.UI.Info import BugAddress |
149 from eric7.UI.Info import BugAddress |
149 from eric7 import Globals, Utilities |
|
150 |
150 |
151 # Workaround for a strange issue with QScintilla |
151 # Workaround for a strange issue with QScintilla |
152 if str(excValue) == "unable to convert a QVariant back to a Python object": |
152 if str(excValue) == "unable to convert a QVariant back to a Python object": |
153 return |
153 return |
154 |
154 |
307 |
307 |
308 # set the search path for icons |
308 # set the search path for icons |
309 Startup.initializeResourceSearchPath(app) |
309 Startup.initializeResourceSearchPath(app) |
310 |
310 |
311 # generate and show a splash window, if not suppressed |
311 # generate and show a splash window, if not suppressed |
312 from eric7.UI.SplashScreen import SplashScreen, NoneSplashScreen |
312 from eric7.UI.SplashScreen import NoneSplashScreen, SplashScreen |
313 |
313 |
314 if "--no-splash" in sys.argv and sys.argv.index("--no-splash") < ddindex: |
314 if "--no-splash" in sys.argv and sys.argv.index("--no-splash") < ddindex: |
315 sys.argv.remove("--no-splash") |
315 sys.argv.remove("--no-splash") |
316 ddindex -= 1 |
316 ddindex -= 1 |
317 splash = NoneSplashScreen() |
317 splash = NoneSplashScreen() |