##// 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
ipcontroller
25 lines | 885 B | text/plain | TextLexer
MinRK
add scripts for non-setuptools install of zmq.parallel
r3634 #!/usr/bin/env python
# encoding: utf-8
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2009 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
Thomas Spura
Report if cwd does not exist and raise exception in BaseIPythonApplication...
r10169 import sys
import traceback
MinRK
add scripts for non-setuptools install of zmq.parallel
r3634
MinRK
organize IPython.parallel into subpackages
r3673 from IPython.parallel.apps.ipcontrollerapp import launch_new_instance
MinRK
add scripts for non-setuptools install of zmq.parallel
r3634
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)