dab794e6fb
Sync tools/with_venv.sh from oslo, it will support argument with blanks. Change-Id: Ibb802b21d609ea6b54fc168b17705f06ad1cb86a Closes-Bug: #1220937
8 lines
218 B
Bash
Executable File
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 && "$@"
|