Skip to content

Commit 51351f7

Browse files
hmaarrfkmeeseeksmachine
authored andcommitted
Backport PR #19245: handle usecase where QT_API is specified with some capitals
1 parent 8a05fa1 commit 51351f7

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
@@ -26,6 +26,8 @@
2626
QT_API_PYSIDE = "PySide"
2727
QT_API_PYQT = "PyQt4" # Use the old sip v1 API (Py3 defaults to v2).
2828
QT_API_ENV = os.environ.get("QT_API")
29+
if QT_API_ENV is not None:
30+
QT_API_ENV = QT_API_ENV.lower()
2931
# Mapping of QT_API_ENV to requested binding. ETS does not support PyQt4v1.
3032
# (https://github.com/enthought/pyface/blob/master/pyface/qt/__init__.py)
3133
_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