diff --git a/skimage/viewer/qt/__init__.py b/skimage/viewer/qt/__init__.py index c816a172..8e7ab939 100644 --- a/skimage/viewer/qt/__init__.py +++ b/skimage/viewer/qt/__init__.py @@ -16,4 +16,7 @@ if qt_api is None: # Note that we don't want to raise an error because that would # cause the TravisCI build to fail. warnings.warn("Could not import PyQt4: ImageViewer not available!") + + +if qt_api is not None: os.environ['QT_API'] = qt_api