]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/get-cmd.py
Avoid readline.h -Wstrict-prototype induced failures
[bup.git] / lib / cmd / get-cmd.py
index 88a919efa5e5e6430b786f8150b724bf4cf0a092..4880cbf7ae66ee79ea33fd65bee657d596bcf0e2 100755 (executable)
@@ -9,7 +9,7 @@ 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
@@ -21,6 +21,8 @@ from collections import namedtuple
 from functools import partial
 from stat import S_ISDIR
 
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
+
 from bup import compat, git, client, helpers, vfs
 from bup.compat import argv_bytes, environ, hexstr, items, wrap_main
 from bup.git import get_cat_data, parse_commit, walk_object