aboutsummaryrefslogtreecommitdiff
path: root/toolchain_utils_githooks
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain_utils_githooks')
-rwxr-xr-xtoolchain_utils_githooks/check-style7
1 files changed, 7 insertions, 0 deletions
diff --git a/toolchain_utils_githooks/check-style b/toolchain_utils_githooks/check-style
index fa06fa3e..c844b1e2 100755
--- a/toolchain_utils_githooks/check-style
+++ b/toolchain_utils_githooks/check-style
@@ -12,6 +12,13 @@ if [[ $# -eq 0 ]]; then
fi
mydir="$(dirname "$(readlink -m "$0")")"
+pydir="${mydir}/.."
+
+if [[ -z "${PYTHONPATH:-}" ]]; then
+ export PYTHONPATH="${pydir}"
+else
+ export PYTHONPATH="${pydir}:${PYTHONPATH}"
+fi
tempfiles=()
rm_tempfiles() {