From b7d27e25754bb927f588e6219c31b0e59a07d1d4 Mon Sep 17 00:00:00 2001 From: Jason Gunthorpe Date: Tue, 2 Jun 2020 13:35:45 -0300 Subject: Add cms-oauth wrapper So it can run without installation. Signed-off-by: Jason Gunthorpe --- cms-oauth | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 cms-oauth diff --git a/cms-oauth b/cms-oauth new file mode 100755 index 0000000..f8f501c --- /dev/null +++ b/cms-oauth @@ -0,0 +1,9 @@ +#!/bin/bash +# SPDX-License-Identifier: GPL-2.0+ +# This script will setup a local virtual environment with all the required +# python packages and then invoke the current source code within it. It is +# useful for development and 'run from source' approaches +set -e +VENV=$(dirname "$BASH_SOURCE")/.venv +source "$VENV/bin/activate" +exec "$VENV/bin/cms-oauth" "$@" -- cgit v1.2.3