-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
25 lines (18 loc) · 1.08 KB
/
Copy pathmain.py
File metadata and controls
25 lines (18 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env pybricks-micropython
"""
Main Entrypoint for Pybricks EV3 MicroPython Execution.
"""
import sys
import os
# Ensure local package path is accessible (MicroPython os.path fallback)
try:
import os.path
current_dir = os.path.dirname(os.path.abspath(__file__))
except (ImportError, AttributeError, NameError):
current_dir = "."
if current_dir and current_dir not in sys.path:
sys.path.append(current_dir)
from evaluate import evaluate_agent
if __name__ == "__main__":
print("Launching EV3 Q-Learning Line Follower Controller...")
evaluate_agent()