Enclose command args in with_venv.sh
Sync tools/with_venv.sh from oslo, it will support argument with blanks. Change-Id: Ibb802b21d609ea6b54fc168b17705f06ad1cb86a Closes-Bug: #1220937
This commit is contained in:
parent
26a47e7723
commit
dab794e6fb
@ -1,4 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
TOOLS=`dirname $0`
|
TOOLS_PATH=${TOOLS_PATH:-$(dirname $0)}
|
||||||
VENV=$TOOLS/../.venv
|
VENV_PATH=${VENV_PATH:-${TOOLS_PATH}}
|
||||||
source $VENV/bin/activate && $@
|
VENV_DIR=${VENV_NAME:-/../.venv}
|
||||||
|
TOOLS=${TOOLS_PATH}
|
||||||
|
VENV=${VENV:-${VENV_PATH}/${VENV_DIR}}
|
||||||
|
source ${VENV}/bin/activate && "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user