From 2c03abb7ec1fb598542ef1d54fa785a83bf13c65 Mon Sep 17 00:00:00 2001 From: laptran Date: Sat, 13 Jun 2026 21:18:05 -0400 Subject: [PATCH] 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 --- scripts/dashboard.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/dashboard.sh diff --git a/scripts/dashboard.sh b/scripts/dashboard.sh new file mode 100755 index 0000000..8450ee7 --- /dev/null +++ b/scripts/dashboard.sh @@ -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() +" "$@"