#2533: output directory for sessions

This commit is contained in:
Czar Echavez
2024-05-01 14:48:10 +01:00
parent b6b5ce91c2
commit 5516fbc6fc

View File

@@ -36,6 +36,14 @@ class _SimOutput:
# if dev mode is enabled, if output dir is not set, print to primaite repo root
path: Path = _PRIMAITE_ROOT.parent.parent / "sessions" / date_str / time_str / "simulation_output"
# otherwise print to output dir
if PRIMAITE_CONFIG["developer_mode"]["output_dir"]:
path: Path = (
Path(PRIMAITE_CONFIG["developer_mode"]["output_dir"])
/ "sessions"
/ date_str
/ time_str
/ "simulation_output"
)
self._path = path
self._save_pcap_logs: bool = False