From 2b13b60920df1ef830ba6ba2c2f2ffb558d9c003 Mon Sep 17 00:00:00 2001 From: Benedek Racz Date: Tue, 4 Feb 2020 10:42:14 +0100 Subject: [PATCH] minimal 18 --- wexpect/host.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wexpect/host.py b/wexpect/host.py index 66829a9..124eba4 100644 --- a/wexpect/host.py +++ b/wexpect/host.py @@ -286,7 +286,7 @@ class SpawnBase: self.child_fd = self.startChild(self.args, self.env) self.get_child_process() logger.info(f'Child pid: {self.child_pid} Console pid: {self.console_pid}') - self.connect_to_child() +# self.connect_to_child() def __del__(self): """This makes sure that no system resources are left open. Python only @@ -362,7 +362,8 @@ class SpawnBase: self.console_class_parameters.update({ 'host_pid': self.host_pid, 'local_echo': self.echo, - 'interact': self.interact_state + 'interact': self.interact_state, + 'just_init': True }) console_class_parameters_kv_pairs = [f'{k}={v}' for k,v in self.console_class_parameters.items() ] console_class_parameters_str = ', '.join(console_class_parameters_kv_pairs)