ci-cd-pipeline-app-murano/murano-apps/LBaaS-interface/Resources/scripts/lbaas_api-0.1/tools/with_venv.sh

7 lines
202 B
Bash
Executable File

#!/bin/bash
tools_path=${tools_path:-$(dirname "$0")}
venv_path=${venv_path:-${tools_path}}
venv_dir=${venv_name:-/../.venv}
VENV=${venv:-${venv_path}/${venv_dir}}
source "${VENV}/bin/activate" && "$@"