summaryrefslogtreecommitdiffstats
path: root/keystone-moon/tools/with_venv.sh
blob: 7303990bd8f2ac179aef20bf000e4c390b76324e (plain)
1
2
3
4
5
6
7
#!/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 && "$@"