From b9654dfd0124870c6e528687a0f34f591bf1f6ce Mon Sep 17 00:00:00 2001 From: Carlos Cordoba Date: Mon, 4 Jul 2016 16:23:42 -0500 Subject: [PATCH] Allow QT_API values that are not completely in lower case --- qtpy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qtpy/__init__.py b/qtpy/__init__.py index b6392f5d..b8373439 100644 --- a/qtpy/__init__.py +++ b/qtpy/__init__.py @@ -68,7 +68,7 @@ PYSIDE_API = ['pyside'] os.environ.setdefault(QT_API, 'pyqt5') -API = os.environ[QT_API] +API = os.environ[QT_API].lower() assert API in (PYQT5_API + PYQT4_API + PYSIDE_API) is_old_pyqt = is_pyqt46 = False