From f312a95c8755de6da3c2696349ad7b70ac9c8c64 2017-01-13 14:09:10 From: Thomas Kluyver Date: 2017-01-13 14:09:10 Subject: [PATCH] Move ImportDenier to the front of sys.meta_path Closes gh-9829 --- diff --git a/IPython/external/qt_loaders.py b/IPython/external/qt_loaders.py index 0fa95f4..b09be86 100644 --- a/IPython/external/qt_loaders.py +++ b/IPython/external/qt_loaders.py @@ -57,7 +57,7 @@ class ImportDenier(object): """ % (fullname, loaded_api())) ID = ImportDenier() -sys.meta_path.append(ID) +sys.meta_path.insert(0, ID) def commit_api(api):