Show More
@@ -24,6 +24,7 b' import logging' | |||||
24 | import os |
|
24 | import os | |
25 | import re |
|
25 | import re | |
26 | import stat |
|
26 | import stat | |
|
27 | import sys | |||
27 | import time |
|
28 | import time | |
28 |
|
29 | |||
29 | # signal imports, handling various platforms, versions |
|
30 | # signal imports, handling various platforms, versions | |
@@ -60,8 +61,8 b' from IPython.utils.text import EvalFormatter' | |||||
60 | from IPython.utils.traitlets import ( |
|
61 | from IPython.utils.traitlets import ( | |
61 | Any, Integer, CFloat, List, Unicode, Dict, Instance, HasTraits, |
|
62 | Any, Integer, CFloat, List, Unicode, Dict, Instance, HasTraits, | |
62 | ) |
|
63 | ) | |
63 |
from IPython.utils.path import |
|
64 | from IPython.utils.path import get_home_dir | |
64 |
from IPython.utils.process import find_cmd, |
|
65 | from IPython.utils.process import find_cmd, FindCmdError | |
65 |
|
66 | |||
66 | from .win32support import forward_read_events |
|
67 | from .win32support import forward_read_events | |
67 |
|
68 | |||
@@ -73,18 +74,13 b" WINDOWS = os.name == 'nt'" | |||||
73 | # Paths to the kernel apps |
|
74 | # Paths to the kernel apps | |
74 | #----------------------------------------------------------------------------- |
|
75 | #----------------------------------------------------------------------------- | |
75 |
|
76 | |||
|
77 | cmd = "from IPython.parallel.apps.%s import launch_new_instance; launch_new_instance()" | |||
76 |
|
78 | |||
77 | ipcluster_cmd_argv = pycmd2argv(get_ipython_module_path( |
|
79 | ipcluster_cmd_argv = [sys.executable, "-c", cmd % "ipclusterapp"] | |
78 | 'IPython.parallel.apps.ipclusterapp' |
|
|||
79 | )) |
|
|||
80 |
|
80 | |||
81 | ipengine_cmd_argv = pycmd2argv(get_ipython_module_path( |
|
81 | ipengine_cmd_argv = [sys.executable, "-c", cmd % "ipengineapp"] | |
82 | 'IPython.parallel.apps.ipengineapp' |
|
|||
83 | )) |
|
|||
84 |
|
82 | |||
85 | ipcontroller_cmd_argv = pycmd2argv(get_ipython_module_path( |
|
83 | ipcontroller_cmd_argv = [sys.executable, "-c", cmd % "ipcontrollerapp"] | |
86 | 'IPython.parallel.apps.ipcontrollerapp' |
|
|||
87 | )) |
|
|||
88 |
|
84 | |||
89 | #----------------------------------------------------------------------------- |
|
85 | #----------------------------------------------------------------------------- | |
90 | # Base launchers and errors |
|
86 | # Base launchers and errors |
General Comments 0
You need to be logged in to leave comments.
Login now