From d9e9d94f306c6e8485cbe07cdcee9cf48253e3b6 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 11 Aug 2016 14:47:17 +0100 Subject: [PATCH] GetLocal(python_path=...) --- econtext/master.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/econtext/master.py b/econtext/master.py index 279ed2e0..677065a2 100644 --- a/econtext/master.py +++ b/econtext/master.py @@ -222,11 +222,13 @@ class Broker(econtext.core.Broker): """Listen on `address `for connections from newly spawned contexts.""" self._listener = Listener(self, address, backlog) - def GetLocal(self, name='default'): + def GetLocal(self, name='default', python_path=None): """Get the named context running on the local machine, creating it if it does not exist.""" context = Context(self, name) context.stream = LocalStream(context) + if python_path: + context.stream.python_path = python_path context.stream.Connect() return self.Register(context)