summaryrefslogtreecommitdiffstats
path: root/debputy.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-07 05:43:21 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-07 05:43:21 +0000
commit5de4edf479d364f18bb917d61fb52a31cf0f7b46 (patch)
tree86052b70228ded97b441da0897ead2eff8f509c4 /debputy.sh
parentReleasing progress-linux version 0.1.34-0.0~progress7.99u1. (diff)
downloaddebputy-5de4edf479d364f18bb917d61fb52a31cf0f7b46.tar.xz
debputy-5de4edf479d364f18bb917d61fb52a31cf0f7b46.zip
Merging upstream version 0.1.35.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debputy.sh')
-rwxr-xr-xdebputy.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/debputy.sh b/debputy.sh
index 0efc286..9b9abd3 100755
--- a/debputy.sh
+++ b/debputy.sh
@@ -1,11 +1,18 @@
#!/bin/sh
-DEBPUTY_PATH="$(dirname "$(readlink -f "$0")")/src"
+DEBPUTY_ROOT="$(dirname "$(readlink -f "$0")")"
+DEBPUTY_PATH="${DEBPUTY_ROOT}/src"
+DEBPUTY_DH_LIB="${DEBPUTY_ROOT}/lib"
if [ -z "${PYTHONPATH}" ]; then
PYTHONPATH="${DEBPUTY_PATH}"
else
PYTHONPATH="${DEBPUTY_PATH}:${PYTHONPATH}"
fi
+if [ -z "${PERL5LIB}" ]; then
+ PERL5LIB="${DEBPUTY_DH_LIB}"
+else
+ PERL5LIB="${DEBPUTY_DH_LIB}:${PERL5LIB}"
+fi
-export PYTHONPATH
+export PYTHONPATH PERL5LIB
python3 -m debputy.commands.debputy_cmd "$@"