designate/tools/with_venv.sh
Kiall Mac Innes e9975b12d0 Update install_venv from Oslo
Change-Id: I1879787b3ae42ffa6b26f43595429e6cb1bad06f
2014-04-11 14:12:31 +01:00

8 lines
218 B
Bash
Executable File

#!/bin/bash
TOOLS_PATH=${TOOLS_PATH:-$(dirname $0)}
VENV_PATH=${VENV_PATH:-${TOOLS_PATH}}
VENV_DIR=${VENV_NAME:-/../.venv}
TOOLS=${TOOLS_PATH}
VENV=${VENV:-${VENV_PATH}/${VENV_DIR}}
source ${VENV}/bin/activate && "$@"