From 4a74d4437d492984c1e8b775e83ca1dc7d789149 2017-01-13 16:49:22 From: Min RK Date: 2017-01-13 16:49:22 Subject: [PATCH] Backport PR #10154: 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 fd69566..0debce1 100644 --- a/IPython/external/qt_loaders.py +++ b/IPython/external/qt_loaders.py @@ -47,7 +47,7 @@ class ImportDenier(object): """ % (fullname, loaded_api())) ID = ImportDenier() -sys.meta_path.append(ID) +sys.meta_path.insert(0, ID) def commit_api(api):