diff options
Diffstat (limited to 'toolchain_utils_githooks/check-style')
-rwxr-xr-x | toolchain_utils_githooks/check-style | 7 |
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() { |