fix(training): make policy evaluation portable

This commit is contained in:
Josh Creek
2026-09-01 18:56:31 +01:00
parent 066aee96cc
commit e56850a236
3 changed files with 25 additions and 0 deletions
+9
View File
@@ -17,6 +17,7 @@ import json
import os
import pathlib
import subprocess
import tempfile
TRAINING_DIR = pathlib.Path(__file__).resolve().parent
GAME_DIR = TRAINING_DIR.parent / "Game"
@@ -37,6 +38,14 @@ def run_half(
) -> dict:
cmd = [
godot_bin,
"--display-driver",
"headless",
"--rendering-method",
"gl_compatibility",
"--audio-driver",
"Dummy",
"--log-file",
str(pathlib.Path(tempfile.gettempdir()) / "cosmic-clash-evaluate-godot.log"),
"--path",
str(GAME_DIR),
TRAINING_SCENE,