src/eric7/Tools/webBrowserSupport.py

Sun, 26 Feb 2023 12:44:03 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 26 Feb 2023 12:44:03 +0100
branch
mpy_network
changeset 9803
2ab3de60b51c
parent 9653
e67609152c5e
child 10331
c1a2ff7e3575
permissions
-rw-r--r--

MicroPython
- fixed an issue checking, if the device data is available

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# Copyright (c) 2018 - 2023 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 contextlib
import sys

variant = "None"

with contextlib.suppress(ImportError):
    from PyQt6 import QtWebEngineWidgets  # __IGNORE_WARNING__

    variant = "QtWebEngine"

print(variant)  # __IGNORE_WARNING_M801__

sys.exit(0)

eric ide

mercurial