eric7/eric7.py

branch
eric7
changeset 8631
b2c4c2f3fda7
parent 8622
149d51870ce8
child 8632
f25cd4b94eb0
equal deleted inserted replaced
8630:5464b9c31cf9 8631:b2c4c2f3fda7
40 "eric7 Error", 40 "eric7 Error",
41 "PyQt could not be imported. Please make sure" 41 "PyQt could not be imported. Please make sure"
42 " it is installed and accessible.") 42 " it is installed and accessible.")
43 sys.exit(100) 43 sys.exit(100)
44 44
45 # TODO: remove this workaround once rc0 issue is fixed 45 with contextlib.suppress(ImportError):
46 # Workaround for a bug in Qt 6.2.0 rc0 on non-Linux 46 from PyQt6 import QtWebEngineWidgets
47 if sys.platform.startswith("linux"): 47 # __IGNORE_WARNING__ __IGNORE_EXCEPTION__
48 with contextlib.suppress(ImportError):
49 from PyQt6 import QtWebEngineWidgets
50 # __IGNORE_WARNING__ __IGNORE_EXCEPTION__
51 48
52 # some global variables needed to start the application 49 # some global variables needed to start the application
53 args = None 50 args = None
54 mainWindow = None 51 mainWindow = None
55 splash = None 52 splash = None

eric ide

mercurial