use module instead of installed bin

This commit is contained in:
mcbloch 2022-04-19 20:19:23 +02:00
parent ee65544031
commit c5e9067d59

View file

@ -12,8 +12,7 @@ E="${normal}"
if [ ! -d "venv" ]; then if [ ! -d "venv" ]; then
PYTHON_VERSION=$(cat .python-version) PYTHON_VERSION=$(cat .python-version)
echo -e "${B} No venv found, creating a new one with version ${PYTHON_VERSION} ${E}" echo -e "${B} No venv found, creating a new one with version ${PYTHON_VERSION} ${E}"
pip install virtualenv python3 -m virtualenv -p $PYTHON_VERSION venv
virtualenv -p $PYTHON_VERSION venv
fi fi
source venv/bin/activate source venv/bin/activate