kingbird/tools/with-env.sh
Dimitri Mazmanov 09c99dc02d Add config generation and venv tools
These tools will help developers to create a virtual
environment with pre-installed requirements.

kingbird.conf generation script will collect the defined
properties and create a configuration file.

Change-Id: I5d423df88a5ff08346fe9e3c9b08fd9379cf1878
2015-11-11 15:42:09 +01:00

8 lines
218 B
Bash

#!/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 && "$@"