Fix setting of QT_API environment variable

This commit is contained in:
Johannes Schönberger
2013-05-29 20:36:08 +02:00
parent 153bc6edf9
commit 817c9634e8
+3
View File
@@ -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