summaryrefslogtreecommitdiffstats
path: root/debputy.sh
blob: 9b9abd395aa0770d7267f635614522ebbc9ebf5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

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 PERL5LIB
python3 -m debputy.commands.debputy_cmd "$@"