Show More
@@ -34,7 +34,7 b' from IPython.kernel.clusterdir import (' | |||||
34 |
|
34 | |||
35 | from IPython.core import release |
|
35 | from IPython.core import release | |
36 |
|
36 | |||
37 | from IPython.utils.traitlets import Str, Instance |
|
37 | from IPython.utils.traitlets import Str, Instance, Unicode | |
38 |
|
38 | |||
39 | from IPython.kernel import controllerservice |
|
39 | from IPython.kernel import controllerservice | |
40 |
|
40 |
@@ -332,6 +332,13 b' class SSHLauncher(BaseLauncher):' | |||||
332 | return super(SSHLauncher, self).start() |
|
332 | return super(SSHLauncher, self).start() | |
333 |
|
333 | |||
334 |
|
334 | |||
|
335 | # This is only used on Windows. | |||
|
336 | if os.name=='nt': | |||
|
337 | job_cmd = find_cmd('job') | |||
|
338 | else: | |||
|
339 | job_cmd = 'job' | |||
|
340 | ||||
|
341 | ||||
335 | class WindowsHPCLauncher(BaseLauncher): |
|
342 | class WindowsHPCLauncher(BaseLauncher): | |
336 |
|
343 | |||
337 | # A regular expression used to get the job id from the output of the |
|
344 | # A regular expression used to get the job id from the output of the | |
@@ -349,7 +356,7 b' class WindowsHPCLauncher(BaseLauncher):' | |||||
349 | default_value='Highest', config=True) |
|
356 | default_value='Highest', config=True) | |
350 | requested_nodes = Str('', config=True) |
|
357 | requested_nodes = Str('', config=True) | |
351 | project = Str('MyProject', config=True) |
|
358 | project = Str('MyProject', config=True) | |
352 |
job_cmd = Str( |
|
359 | job_cmd = Str(job_cmd, config=True) | |
353 |
|
360 | |||
354 | def __init__(self, working_dir, parent=None, name=None, config=None): |
|
361 | def __init__(self, working_dir, parent=None, name=None, config=None): | |
355 | super(WindowsHPCLauncher, self).__init__( |
|
362 | super(WindowsHPCLauncher, self).__init__( |
General Comments 0
You need to be logged in to leave comments.
Login now