mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 15:02:06 +08:00
process replay: Fix setting environment vars (#25015)
Fix setting environments in process replay
This commit is contained in:
@@ -398,8 +398,8 @@ def setup_env(simulation=False, CP=None, cfg=None):
|
||||
|
||||
if cfg is not None:
|
||||
# Clear all custom processConfig environment variables
|
||||
for cfg in CONFIGS:
|
||||
for k, _ in cfg.environ.items():
|
||||
for config in CONFIGS:
|
||||
for k, _ in config.environ.items():
|
||||
if k in os.environ:
|
||||
del os.environ[k]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user