From 24ae042bbaa72e5133610f98b7cb692ea7734470 Mon Sep 17 00:00:00 2001 From: Marek Fiala Date: Fri, 6 Sep 2024 11:11:50 +0200 Subject: [PATCH] fix(tools): Corrected detect_shell When comparing process name with python, lowercase the process name in condition. --- tools/export_utils/activate_venv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/export_utils/activate_venv.py b/tools/export_utils/activate_venv.py index 6014cb5fe3..bee77167a7 100644 --- a/tools/export_utils/activate_venv.py +++ b/tools/export_utils/activate_venv.py @@ -108,7 +108,7 @@ def detect_shell(args: Any) -> str: while True: parent_pid = psutil.Process(current_pid).ppid() parent_name = psutil.Process(parent_pid).name() - if not parent_name.startswith('python'): + if not parent_name.lower().startswith('python'): detected_shell_name = parent_name conf.DETECTED_SHELL_PATH = psutil.Process(parent_pid).exe() break