python-ironicclient/tools/with_venv.sh
Chris Krelle 8136ec1b72 Add initial files
Add initial files to the repo.

Change-Id: Ia6b0278fc9817f44e63507b54e7d7ad41bf4e219
2013-09-05 16:35:21 -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 && "$@"