bootstrap: Allow absolute-path $VENV
@@ -17,7 +17,7 @@ if [[ "$PYTHON" =~ "python2" ]]; then
fi
PYTHON=${PYTHON:-"python3"}
-VENV=${VENV:-"virtualenv"}
+VENV=${VENV:-"./virtualenv"}
case "$(uname -s)" in
Linux)
@@ -142,18 +142,18 @@ fi
export LC_ALL=en_US.UTF-8
-if [ -z "$NO_CLOBBER" ] || [ ! -e ./$VENV ]; then
+if [ -z "$NO_CLOBBER" ] || [ ! -e $VENV ]; then
python3 -m venv $VENV
fi
# First, upgrade pip
-./$VENV/bin/pip install --upgrade pip
+$VENV/bin/pip install --upgrade pip
# Remove leftover .pyc files
find teuthology -name '*.pyc' -exec rm {} \;
# Install teuthology in editable mode
-./$VENV/bin/pip install --editable '.[test]'
+$VENV/bin/pip install --editable '.[test]'
# Check to make sure requirements are met
-./$VENV/bin/pip check
+$VENV/bin/pip check
