diff -r 4e8b98454baa -r 800c432b34c8 eric7/Tools/webBrowserSupport.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/eric7/Tools/webBrowserSupport.py Sat May 15 18:45:04 2021 +0200 @@ -0,0 +1,25 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +# Copyright (c) 2018 - 2021 Detlev Offenbach <detlev@die-offenbachs.de> +# + +""" +Script to determine the supported web browser variant. + +It looks for QtWebEngine. It reports the variant found or the string 'None' if +it is absent. +""" + +import sys +import contextlib + +variant = "None" + +with contextlib.suppress(ImportError): + from PyQt5 import QtWebEngineWidgets # __IGNORE_WARNING__ + variant = "QtWebEngine" + +print(variant) # __IGNORE_WARNING_M801__ + +sys.exit(0)