dev_setup.sh ignores WORKON_HOME when VIRTUALENV_ROOT is unset
dev_setup.sh ignores WORKON_HOME when VIRTUALENV_ROOT is unset
Favor using the WORKON_HOME environment variable over VIRTUALENV_ROOT
Specifying the name of the virtualenv directory
Postfixing VIRTUALENV_ROOT with "/mycroft"
@@ -33,7 +33,12 @@ if [ $(id -u) -eq 0 ]; then
fi
TOP=$(cd $(dirname $0) && pwd -L)
+
+if [ -z "$WORKON_HOME" ]; then
VIRTUALENV_ROOT=${VIRTUALENV_ROOT:-"${HOME}/.virtualenvs/mycroft"}
+else
+ VIRTUALENV_ROOT="$WORKON_HOME/mycroft"
+fi
# create virtualenv, consistent with virtualenv-wrapper conventions
if [ ! -d ${VIRTUALENV_ROOT} ]; then
