openstack-doc-tools/tools/with_venv.sh
Andreas Jaeger 89cf4a3eb8 Import venv setup from oslo-incubator
Import usual venv tools for easier python development.
This includes setup of openstack-common.conf.

Update .gitignore for changes.

Change-Id: I9d08bbbe10f4692fbd409b26238cc033a382cc24
2014-01-01 11:11:29 +01: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 && "$@"