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"
if ! source ./.venv/bin/activate; then
if ! source ./venv/bin/activate; then
printf "No venv activation script\n"
if [ -d "./.venv" ]
if [ -d "./venv" ]
then
printf "Removing old venv\n"
rm -r ./.venv
rm -r ./venv
fi
printf "Creating new venv\n"
# Create venv at ./.venv
virtualenv ./.venv --prompt "(borg-web) "
source ./.venv/bin/activate
# Create venv at ./venv
virtualenv ./venv --prompt "(borg-web) "
source ./venv/bin/activate
fi
print_action "Installing pip packages, this may take a while..."