From 11ed7eae5e131dbcdff8393caf39394c3a6c836f 2015-05-14 19:00:27 From: Min RK Date: 2015-05-14 19:00:27 Subject: [PATCH] qtconsole package has been flattened. Shim both IPython.qt and IPython.qt.console to the same place. --- diff --git a/IPython/qt.py b/IPython/qt.py index 90f68b3..77fa73f 100644 --- a/IPython/qt.py +++ b/IPython/qt.py @@ -15,4 +15,6 @@ from IPython.utils.shimmodule import ShimModule # Unconditionally insert the shim into sys.modules so that further import calls # trigger the custom attribute access above -sys.modules['IPython.qt'] = ShimModule(src='IPython.qt', mirror='qtconsole') +sys.modules['IPython.qt'] = _qt = ShimModule(src='IPython.qt', mirror='qtconsole') +sys.modules['IPython.qt.console'] = _console = ShimModule(src='IPython.qt.console', mirror='qtconsole') +_qt.console = _console