- Fixed the bug where session gets run twice when loading a session via CLI
- Added a test for the CLI run - xskipped while the bugfix for load session acting odd is tbd
- Fixed a minor bug in PrimAITE session where session_path is overwritten
This commit is contained in:
Czar Echavez
2023-07-20 16:21:30 +01:00
parent 8d31afe139
commit 6930c8ba7b
3 changed files with 50 additions and 57 deletions

View File

@@ -173,15 +173,18 @@ def session(tc: Optional[str] = None, ldc: Optional[str] = None, load: Optional[
from primaite.main import run
if load is not None:
# run a loaded session
run(session_path=load)
if not tc:
tc = main_training_config_path()
else:
# start a new session using tc and ldc
if not tc:
tc = main_training_config_path()
if not ldc:
ldc = dos_very_basic_config_path()
if not ldc:
ldc = dos_very_basic_config_path()
run(training_config_path=tc, lay_down_config_path=ldc)
run(training_config_path=tc, lay_down_config_path=ldc)
@app.command()