Tools/environment_install: print how to activate venv if not default

This commit is contained in:
ARg 2024-09-11 10:39:24 +02:00 committed by Peter Barker
parent 8b37100772
commit 04ee66bec4
3 changed files with 6 additions and 0 deletions

View File

@ -66,6 +66,8 @@ fi
if [[ $DO_PYTHON_VENV_ENV -eq 1 ]]; then
echo "$SOURCE_LINE" >> ~/.bashrc
else
echo "Please use \`$SOURCE_LINE\` to activate the ArduPilot venv"
fi
pip3 -q install -U $PYTHON_PKGS

View File

@ -102,6 +102,8 @@ if ! grep -Fxq "$SOURCE_LINE" ~/.bashrc; then
if [[ $DO_PYTHON_VENV_ENV -eq 1 ]]; then
echo $SOURCE_LINE >> ~/.bashrc
else
echo "Please use \`$SOURCE_LINE\` to activate the ArduPilot venv"
fi
fi

View File

@ -397,6 +397,8 @@ if [ -n "$PYTHON_VENV_PACKAGE" ]; then
if [[ $DO_PYTHON_VENV_ENV -eq 1 ]]; then
echo $SOURCE_LINE >> ~/$SHELL_LOGIN
else
echo "Please use \`$SOURCE_LINE\` to activate the ArduPilot venv"
fi
fi