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:
Executable
+11
@@ -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()
|
||||
" "$@"
|
||||
Reference in New Issue
Block a user