Use sys.executable for LocalStream.python_path by default
But still use just 'python' for SshStream.
This commit is contained in:
parent
d4478ca25c
commit
5ccf90702e
|
@ -156,7 +156,7 @@ class LocalStream(econtext.core.Stream):
|
||||||
Base for streams capable of starting new slaves.
|
Base for streams capable of starting new slaves.
|
||||||
"""
|
"""
|
||||||
#: The path to the remote Python interpreter.
|
#: The path to the remote Python interpreter.
|
||||||
python_path = 'python'
|
python_path = sys.executable
|
||||||
|
|
||||||
def __init__(self, context):
|
def __init__(self, context):
|
||||||
super(LocalStream, self).__init__(context)
|
super(LocalStream, self).__init__(context)
|
||||||
|
@ -243,6 +243,7 @@ class LocalStream(econtext.core.Stream):
|
||||||
|
|
||||||
|
|
||||||
class SshStream(LocalStream):
|
class SshStream(LocalStream):
|
||||||
|
python_path = 'python'
|
||||||
#: The path to the SSH binary.
|
#: The path to the SSH binary.
|
||||||
ssh_path = 'ssh'
|
ssh_path = 'ssh'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue