From a43bde9a0199b68125afb4740f42977160bc0e38 Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Wed, 9 Jul 2025 18:11:36 +0800 Subject: [PATCH] fix: remove PATH env. --- apps/common/utils/tool_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/utils/tool_code.py b/apps/common/utils/tool_code.py index 414d08e3a..9c88603b3 100644 --- a/apps/common/utils/tool_code.py +++ b/apps/common/utils/tool_code.py @@ -52,7 +52,7 @@ try: sys.path += {python_paths} env = dict(os.environ) for key in list(env.keys()): - if key in os.environ and (key.startswith('MAXKB') or key.startswith('POSTGRES') or key.startswith('PG') or key.startswith('REDIS')): + if key in os.environ and (key.startswith('MAXKB') or key.startswith('POSTGRES') or key.startswith('PG') or key.startswith('REDIS') or key == 'PATH'): del os.environ[key] locals_v={'{}'} keywords={keywords}