fix: remove PATH env.

This commit is contained in:
liqiang-fit2cloud 2025-07-09 18:11:36 +08:00
parent 16088975fa
commit a43bde9a01

View File

@ -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}