group-based-policy/tools/with_venv.sh
Ivar Lazzaro af3cbdfc7f Project boilerplate and base modules
Change-Id: I2f7031c44afdc8faad33ba7818a90fe5cdc001cc
2014-09-26 15:16:17 -07: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 && "$@"