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 10f3f76 commit 0186844Copy full SHA for 0186844
build.sh
@@ -159,11 +159,14 @@ if [ $BUILD_ALL -eq 1 ] ; then
159
exit $?
160
fi
161
162
+##############################################################
163
# Set up the virtual environment if it exists
164
if [[ -d "$PIO_VENV_ROOT" && "$VIRTUAL_ENV" != "$PIO_VENV_ROOT" ]] ; then
165
echo "Activating virtual environment"
166
[[ -z "$VIRTUAL_ENV" ]] && deactivate &>/dev/null
167
source "$PIO_VENV_ROOT/bin/activate"
168
+elif [[ -d "$PIO_VENV_ROOT" && "$VIRTUAL_ENV" == "$PIO_VENV_ROOT" ]] ; then
169
+ echo "Virtual environment already activated at $PIO_VENV_ROOT"
170
else
171
echo "Warning: Virtual environment not found in $PIO_VENV_ROOT. Continuing without it."
172
0 commit comments