Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions engine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ def deploy_mission(self, level_path, level_name):
if setup_script.exists():
console.print("[yellow]Running level setup script...[/yellow]")
result = subprocess.run(
["bash", str(setup_script)],
["bash", setup_script.name],
cwd=str(level_path),
capture_output=True,
text=True,
Expand Down Expand Up @@ -861,10 +861,11 @@ def validate_mission(self, level_path, level_name):
console.print("\n[yellow]๐Ÿ” Validating your solution...[/yellow]\n")

validate_script = level_path / "validate.sh"
console.print(f"\n[yellow]{validate_script}[/yellow]\n")

# Run validation script from the level directory with proper environment
result = subprocess.run(
["bash", str(validate_script)],
["bash", validate_script.name],
cwd=str(level_path), # CRITICAL: Run from level directory
capture_output=True,
text=True,
Expand Down