From 737759868389e0b4863554d94758f99a78c69580 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sat, 12 Jan 2019 17:55:08 -0500 Subject: [PATCH] Properly respect `rpc_module_paths` in `run_in_actor()` --- tractor/_trionics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tractor/_trionics.py b/tractor/_trionics.py index 289e42b..d9a5ee0 100644 --- a/tractor/_trionics.py +++ b/tractor/_trionics.py @@ -114,7 +114,7 @@ class ActorNursery: name: str, fn: typing.Callable, bind_addr: Tuple[str, int] = ('127.0.0.1', 0), - rpc_module_paths: List[str] = None, + rpc_module_paths: List[str] = [], statespace: Dict[str, Any] = None, loglevel: str = None, # set log level per subactor **kwargs, # explicit args to ``fn`` @@ -129,7 +129,7 @@ class ActorNursery: mod_path = fn.__module__ portal = await self.start_actor( name, - rpc_module_paths=[mod_path], + rpc_module_paths=[mod_path] + rpc_module_paths, bind_addr=bind_addr, statespace=statespace, )