#!/usr/bin/env bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]:-$0}" )/.." && pwd )" if [[ -z "$VIRTUAL_ENV" ]] || [[ "$VIRTUAL_ENV" != "${DIR}/.venv" ]] ; then source "${DIR}/.venv/bin/activate" fi