src/eric7/eric7_ide.py

branch
eric7
changeset 9473
3f23dbf37dbe
parent 9431
dfc249493a98
child 9482
a2bc06a54d9d
equal deleted inserted replaced
9472:5798ee4a8807 9473:3f23dbf37dbe
15 import io 15 import io
16 import logging 16 import logging
17 import multiprocessing 17 import multiprocessing
18 import os 18 import os
19 import sys 19 import sys
20 import time
20 import traceback 21 import traceback
21 import time
22 22
23 originalPathString = os.getenv("PATH") 23 originalPathString = os.getenv("PATH")
24 24
25 # generate list of arguments to be remembered for a restart 25 # generate list of arguments to be remembered for a restart
26 restartArgsList = [ 26 restartArgsList = [
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()

eric ide

mercurial