Skip to content

Commit

Permalink
Bring back DEBUG for dev environment cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
craig8 committed Oct 24, 2024
1 parent 68284c6 commit b820f64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/volttrontesting/platformwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ def __init__(self, options: ServerOptions, project_toml_file: Path | str, start_
'PATH': f":{self._venv.as_posix()}/bin:" + os.environ.get("PATH", "")
}

# Allow debug override of skip_cleanup parameter.
if 'DEBUG' in os.environ:
self._skip_cleanup = True

if environment_updates is not None:
if not isinstance(environment_updates, dict):
raise ValueError(f"environmental_update must be: dict[str, str] not type {type(environment_updates)}")
Expand Down

0 comments on commit b820f64

Please sign in to comment.