From e5ef172d209145b12b5ca36d9333d660c07867d9 Mon Sep 17 00:00:00 2001 From: Benjamin Maisonneuve Date: Fri, 24 Jan 2025 14:35:19 +0000 Subject: [PATCH] (fix)[BaseEnvShell] set Shell_mode default to False --- src/gws_core/impl/shell/base_env_shell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gws_core/impl/shell/base_env_shell.py b/src/gws_core/impl/shell/base_env_shell.py index 7895d5bd..88b35b3e 100644 --- a/src/gws_core/impl/shell/base_env_shell.py +++ b/src/gws_core/impl/shell/base_env_shell.py @@ -80,7 +80,7 @@ def _generate_env_hash(self) -> str: except Exception as err: raise Exception(f"Error while reading the env file. Error {err}") from err - def run(self, cmd: Union[list, str], env: dict = None, shell_mode: bool = True) -> int: + def run(self, cmd: Union[list, str], env: dict = None, shell_mode: bool = False) -> int: formatted_cmd = self.format_command(cmd) # compute env @@ -93,7 +93,7 @@ def run(self, cmd: Union[list, str], env: dict = None, shell_mode: bool = True) return super().run(formatted_cmd, complete_env, shell_mode) - def run_in_new_thread(self, cmd: Union[list, str], env: dict = None, shell_mode: bool = True) -> SysProc: + def run_in_new_thread(self, cmd: Union[list, str], env: dict = None, shell_mode: bool = False) -> SysProc: formatted_cmd = self.format_command(cmd) # compute env