Remove leading period from venv dir

This commit is contained in:
George Lacey 2021-06-03 08:58:16 +01:00
parent 8f70d62cc8
commit dd0e981543

View File

@ -17,18 +17,18 @@ cd "${0%/*}"
print_action "Checking for existence of python venv" print_action "Checking for existence of python venv"
if ! source ./.venv/bin/activate; then if ! source ./venv/bin/activate; then
printf "No venv activation script\n" printf "No venv activation script\n"
if [ -d "./.venv" ] if [ -d "./venv" ]
then then
printf "Removing old venv\n" printf "Removing old venv\n"
rm -r ./.venv rm -r ./venv
fi fi
printf "Creating new venv\n" printf "Creating new venv\n"
# Create venv at ./.venv # Create venv at ./venv
virtualenv ./.venv --prompt "(borg-web) " virtualenv ./venv --prompt "(borg-web) "
source ./.venv/bin/activate source ./venv/bin/activate
fi fi
print_action "Installing pip packages, this may take a while..." print_action "Installing pip packages, this may take a while..."