summaryrefslogtreecommitdiffstats
path: root/debputy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'debputy.sh')
-rwxr-xr-xdebputy.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/debputy.sh b/debputy.sh
new file mode 100755
index 0000000..0efc286
--- /dev/null
+++ b/debputy.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+DEBPUTY_PATH="$(dirname "$(readlink -f "$0")")/src"
+if [ -z "${PYTHONPATH}" ]; then
+ PYTHONPATH="${DEBPUTY_PATH}"
+else
+ PYTHONPATH="${DEBPUTY_PATH}:${PYTHONPATH}"
+fi
+
+export PYTHONPATH
+python3 -m debputy.commands.debputy_cmd "$@"