diff --git a/deploy_local_beta/deploy_local_beta_python2.sh b/deploy_local_beta/deploy_local_beta_python2.sh index 1078775e4..2c9df50ec 100644 --- a/deploy_local_beta/deploy_local_beta_python2.sh +++ b/deploy_local_beta/deploy_local_beta_python2.sh @@ -12,8 +12,15 @@ else #SETUP VIRTUALENV ################# +if test -e $ANYBETA_VENV_DIR +then + ANYBETA_report "Remove old virtualenv" + rm -r $ANYBETA_VENV_DIR +fi + ANYBETA_report ANYBETA_report "Enable virtualenv" + virtualenv -p $ANYBETA_PYTHON_PATH $ANYBETA_VENV_NAME . $ANYBETA_VENV_ACTIVATE