]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/on-cmd.py
Prefer python 3, and mention intent to drop python 2 support
[bup.git] / lib / cmd / on-cmd.py
index fd89da4e8bc51c9653f1b2aa968a75c1fa9c25d6..9eaabef2eaa833a5d854d754ef3b4cb5b00b4fa4 100755 (executable)
@@ -9,14 +9,16 @@ for arg in "$@"; do
     arg_i=$((arg_i + 1))
 done
 # Here to end of preamble replaced during install
-bup_python="$(dirname "$0")/bup-python" || exit $?
+bup_python="$(dirname "$0")/../../config/bin/python" || exit $?
 exec "$bup_python" "$0"
 """
 # end of bup preamble
 
 from __future__ import absolute_import
 from subprocess import PIPE
-import sys, os, struct, getopt, subprocess, signal
+import getopt, os, signal, struct, subprocess, sys
+
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
 
 from bup import compat, options, ssh, path
 from bup.compat import argv_bytes