- 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
12 lines
252 B
Bash
Executable File
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()
|
|
" "$@"
|