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
This commit is contained in:
2026-06-13 21:18:05 -04:00
parent b15b495d2e
commit 2c03abb7ec
+11
View File
@@ -0,0 +1,11 @@
#!/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()
" "$@"