mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-15 12:12:07 +00:00
fix(training): make policy evaluation portable
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user