Files
gitea 2c03abb7ec Fix dashboard module resolution from any project directory
- Add automaton.pth to user site-packages so python -m automaton.dashboard
  works from any working directory, not just ~/.automaton/
- Add scripts/dashboard.sh as a convenience wrapper with PYTHONPATH
2026-06-13 21:18:05 -04:00

12 lines
252 B
Bash
Executable File

#!/bin/bash
# Convenience wrapper to run the automaton dashboard from any directory.
set -e
FRAMEWORK_DIR="$HOME/.automaton"
exec python3 -c "
import sys
sys.path.insert(0, '$FRAMEWORK_DIR')
from automaton.dashboard.__main__ import main
main()
" "$@"