Merge "Support kolla-ansible installed in a virtualenv"

This commit is contained in:
Jenkins 2017-02-17 16:29:59 +00:00 committed by Gerrit Code Review
commit 156118738a

View File

@ -10,6 +10,8 @@ function find_base_dir {
BASEDIR=/usr/share/kolla-ansible
elif [[ ${dir_name} == "/usr/local/bin" ]]; then
BASEDIR=/usr/local/share/kolla-ansible
elif [[ -n ${VIRTUAL_ENV} ]] && [[ ${dir_name} == "${VIRTUAL_ENV}/bin" ]]; then
BASEDIR="${VIRTUAL_ENV}/share/kolla-ansible"
else
BASEDIR="$(dirname ${dir_name})"
fi