INNER CODE UNIT · Python
main
yohey-w/multi-agent-shogun · scripts/dashboard-viewer.py:276
def main():
repo_root = get_repo_root()
dashboard_path = repo_root / "dashboard.md"
if not dashboard_path.exists():
print(f"Error: dashboard.md not found at {dashboard_path}", file=sys.stderr)
sys.exit(1)
# Inject path into handler class
DashboardHandler.dashboard_path = dashboard_path
import socket
try:
server = http.server.HTTPServer(("127.0.0.1", PORT), DashboardHandler)
except OSError as e:
if e.errno == 48 or e.errno == 98: # Address already in use (macOS=48, Linux=98)
print(