##// END OF EJS Templates
Backport PR #9965: Allow the debugger to work in code which calls __import__("__main__")...
Backport PR #9965: Allow the debugger to work in code which calls __import__("__main__") this basically resolves 9941 as suggested by takluyver in https://github.com/ipython/ipython/issues/9941 issuecomment-248071079. In summary, it is needed to run e.g. standard unittests within the debugger. For more details see 9941. Signed-off-by: Thomas Kluyver <thomas@kluyver.me.uk>

File last commit:

r11336:24b78a4d
r23137:44edfbe8
Show More
__main__.py
14 lines | 464 B | text/x-python | PythonLexer
# encoding: utf-8
"""Terminal-based IPython entry point.
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2012, IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
from IPython import start_ipython
start_ipython()