Skip to content

Commit a43bde9

Browse files
fix: remove PATH env.
1 parent 1608897 commit a43bde9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/common/utils/tool_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def exec_code(self, code_str, keywords):
5252
sys.path += {python_paths}
5353
env = dict(os.environ)
5454
for key in list(env.keys()):
55-
if key in os.environ and (key.startswith('MAXKB') or key.startswith('POSTGRES') or key.startswith('PG') or key.startswith('REDIS')):
55+
if key in os.environ and (key.startswith('MAXKB') or key.startswith('POSTGRES') or key.startswith('PG') or key.startswith('REDIS') or key == 'PATH'):
5656
del os.environ[key]
5757
locals_v={'{}'}
5858
keywords={keywords}

0 commit comments

Comments
 (0)