aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcms-oauth9
1 files changed, 9 insertions, 0 deletions
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" "$@"