Skip to content

Commit 792fc13

Browse files
authored
handle usecase where QT_API is specified with some capitals (#19245)
* handle usecase where QT_API is specified with some capitals * Update qt_compat.py
1 parent 72f2de3 commit 792fc13

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/backends/qt_compat.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
QT_API_PYSIDE = "PySide"
2828
QT_API_PYQT = "PyQt4" # Use the old sip v1 API (Py3 defaults to v2).
2929
QT_API_ENV = os.environ.get("QT_API")
30+
if QT_API_ENV is not None:
31+
QT_API_ENV = QT_API_ENV.lower()
3032
# Mapping of QT_API_ENV to requested binding. ETS does not support PyQt4v1.
3133
# (https://github.com/enthought/pyface/blob/master/pyface/qt/__init__.py)
3234
_ETS = {"pyqt5": QT_API_PYQT5, "pyside2": QT_API_PYSIDE2,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy