#372 - 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"pull/446/merge
parent
04359f000f
commit
878b05298d
|
@ -33,7 +33,12 @@ if [ $(id -u) -eq 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TOP=$(cd $(dirname $0) && pwd -L)
|
TOP=$(cd $(dirname $0) && pwd -L)
|
||||||
|
|
||||||
|
if [ -z "$WORKON_HOME" ]; then
|
||||||
VIRTUALENV_ROOT=${VIRTUALENV_ROOT:-"${HOME}/.virtualenvs/mycroft"}
|
VIRTUALENV_ROOT=${VIRTUALENV_ROOT:-"${HOME}/.virtualenvs/mycroft"}
|
||||||
|
else
|
||||||
|
VIRTUALENV_ROOT="$WORKON_HOME/mycroft"
|
||||||
|
fi
|
||||||
|
|
||||||
# create virtualenv, consistent with virtualenv-wrapper conventions
|
# create virtualenv, consistent with virtualenv-wrapper conventions
|
||||||
if [ ! -d ${VIRTUALENV_ROOT} ]; then
|
if [ ! -d ${VIRTUALENV_ROOT} ]; then
|
||||||
|
|
Loading…
Reference in New Issue