packetary-specs/tools/with_venv.sh
Vladimir Kozhukalov fc24251028 Initial commit
Add file repository structure
* AUTHORS
* Changelog
* LICENSE
* README.rst
* doc
* specs
* tests
* requirements.txt
* setup.py
* setup.cfg
* tox.ini
* tools

Change-Id: Icc4b0f58f50a019b7cd7dfaf945ebd7b1ba87a89
2016-03-18 16:50:12 +03: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 && "$@"