##// END OF EJS Templates
Report if cwd does not exist and raise exception in BaseIPythonApplication...
Report if cwd does not exist and raise exception in BaseIPythonApplication Catch the exception in the starting scripts, report the exception and exit gracefully. Do not directly exit in BaseIPythonApplication so that external applications can also catch the exception instead of exiting.

File last commit:

r10169:a63abfd9
r10169:a63abfd9
Show More
ipython
15 lines | 383 B | text/plain | TextLexer
Fernando Perez
Add main ipython script entry point in same location as before.
r2837 #!/usr/bin/env python
"""Terminal-based IPython entry point.
Fernando Perez
Update docstring
r4246 """
Thomas Spura
Report if cwd does not exist and raise exception in BaseIPythonApplication...
r10169 import sys
import traceback
Fernando Perez
Add main ipython script entry point in same location as before.
r2837
from IPython.frontend.terminal.ipapp import launch_new_instance
Thomas Spura
Report if cwd does not exist and raise exception in BaseIPythonApplication...
r10169 try:
launch_new_instance()
except:
exc_type, exc_value, exc_traceback = sys.exc_info()
traceback.print_exception(exc_type, exc_value, exc_traceback,
file=sys.stderr)
sys.exit(1)