Show More
1 | NO CONTENT: modified file |
|
NO CONTENT: modified file |
@@ -22,17 +22,19 b' pjoin = os.path.join' | |||||
22 |
|
22 | |||
23 | from twisted.internet import reactor, defer |
|
23 | from twisted.internet import reactor, defer | |
24 | from twisted.internet.protocol import ProcessProtocol |
|
24 | from twisted.internet.protocol import ProcessProtocol | |
25 | from twisted.python import failure, log |
|
|||
26 | from twisted.internet.error import ProcessDone, ProcessTerminated |
|
25 | from twisted.internet.error import ProcessDone, ProcessTerminated | |
27 | from twisted.internet.utils import getProcessOutput |
|
26 | from twisted.internet.utils import getProcessOutput | |
|
27 | from twisted.python import failure, log | |||
28 |
|
28 | |||
29 | from IPython.external import argparse |
|
29 | from IPython.external import argparse | |
30 | from IPython.external import Itpl |
|
30 | from IPython.external import Itpl | |
31 | from IPython.kernel.twistedutil import gatherBoth |
|
|||
32 | from IPython.kernel.util import printer |
|
|||
33 | from IPython.genutils import get_ipython_dir, num_cpus |
|
31 | from IPython.genutils import get_ipython_dir, num_cpus | |
34 | from IPython.kernel.fcutil import have_crypto |
|
32 | from IPython.kernel.fcutil import have_crypto | |
35 | from IPython.kernel.error import SecurityError |
|
33 | from IPython.kernel.error import SecurityError | |
|
34 | from IPython.kernel.fcutil import have_crypto | |||
|
35 | from IPython.kernel.twistedutil import gatherBoth | |||
|
36 | from IPython.kernel.util import printer | |||
|
37 | ||||
36 |
|
38 | |||
37 | #----------------------------------------------------------------------------- |
|
39 | #----------------------------------------------------------------------------- | |
38 | # General process handling code |
|
40 | # General process handling code | |
@@ -346,8 +348,8 b' def main_local(args):' | |||||
346 | cont_args.append('--logfile=%s' % pjoin(args.logdir,'ipcontroller')) |
|
348 | cont_args.append('--logfile=%s' % pjoin(args.logdir,'ipcontroller')) | |
347 |
|
349 | |||
348 | # Check security settings before proceeding |
|
350 | # Check security settings before proceeding | |
349 |
|
|
351 | if not check_security(args, cont_args): | |
350 |
|
|
352 | return | |
351 |
|
353 | |||
352 | cl = ControllerLauncher(extra_args=cont_args) |
|
354 | cl = ControllerLauncher(extra_args=cont_args) | |
353 | dstart = cl.start() |
|
355 | dstart = cl.start() | |
@@ -379,8 +381,8 b' def main_mpirun(args):' | |||||
379 | cont_args.append('--logfile=%s' % pjoin(args.logdir,'ipcontroller')) |
|
381 | cont_args.append('--logfile=%s' % pjoin(args.logdir,'ipcontroller')) | |
380 |
|
382 | |||
381 | # Check security settings before proceeding |
|
383 | # Check security settings before proceeding | |
382 |
|
|
384 | if not check_security(args, cont_args): | |
383 |
|
|
385 | return | |
384 |
|
386 | |||
385 | cl = ControllerLauncher(extra_args=cont_args) |
|
387 | cl = ControllerLauncher(extra_args=cont_args) | |
386 | dstart = cl.start() |
|
388 | dstart = cl.start() | |
@@ -416,8 +418,8 b' def main_pbs(args):' | |||||
416 | cont_args.append('--logfile=%s' % pjoin(args.logdir,'ipcontroller')) |
|
418 | cont_args.append('--logfile=%s' % pjoin(args.logdir,'ipcontroller')) | |
417 |
|
419 | |||
418 | # Check security settings before proceeding |
|
420 | # Check security settings before proceeding | |
419 |
|
|
421 | if not check_security(args, cont_args): | |
420 |
|
|
422 | return | |
421 |
|
423 | |||
422 | cl = ControllerLauncher(extra_args=cont_args) |
|
424 | cl = ControllerLauncher(extra_args=cont_args) | |
423 | dstart = cl.start() |
|
425 | dstart = cl.start() |
General Comments 0
You need to be logged in to leave comments.
Login now