From 5ccf90702e5303d2405f8a7ec90b9ec04a62f7f9 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 17 Aug 2016 10:24:40 +0100 Subject: [PATCH] Use sys.executable for LocalStream.python_path by default But still use just 'python' for SshStream. --- econtext/master.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/econtext/master.py b/econtext/master.py index 04614ca9..b8077363 100644 --- a/econtext/master.py +++ b/econtext/master.py @@ -156,7 +156,7 @@ class LocalStream(econtext.core.Stream): Base for streams capable of starting new slaves. """ #: The path to the remote Python interpreter. - python_path = 'python' + python_path = sys.executable def __init__(self, context): super(LocalStream, self).__init__(context) @@ -243,6 +243,7 @@ class LocalStream(econtext.core.Stream): class SshStream(LocalStream): + python_path = 'python' #: The path to the SSH binary. ssh_path = 'ssh'