We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 360d292 commit f6a2abbCopy full SHA for f6a2abb
polaris
@@ -72,5 +72,12 @@ if [ -z "$VIRTUAL_ENV" ] || [ "$(realpath "$VIRTUAL_ENV")" != "$(realpath "${dir
72
source "${dir}/polaris-venv/bin/activate"
73
fi
74
75
+# If polaris is not found after activating the venv, it's likely the venv is old and needs a repair
76
+if ! command -v polaris &> /dev/null; then
77
+ echo "Polaris executable not found. Forcing a repair..." >&2
78
+ "${dir}/polaris" --repair
79
+ source "${dir}/polaris-venv/bin/activate"
80
+fi
81
+
82
export SCRIPT_DIR="${dir}"
83
exec polaris "$@"
0 commit comments