9 |
9 |
10 It looks for QtWebEngine. It reports the variant found or the string 'None' if |
10 It looks for QtWebEngine. It reports the variant found or the string 'None' if |
11 it is absent. |
11 it is absent. |
12 """ |
12 """ |
13 |
13 |
|
14 import contextlib |
14 import sys |
15 import sys |
15 import contextlib |
|
16 |
16 |
17 variant = "None" |
17 variant = "None" |
18 |
18 |
19 with contextlib.suppress(ImportError): |
19 with contextlib.suppress(ImportError): |
20 from PyQt6 import QtWebEngineWidgets # __IGNORE_WARNING__ |
20 from PyQt6 import QtWebEngineWidgets # __IGNORE_WARNING__ |