]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/tag-cmd.py
metadata: fix test failure with xattrs
[bup.git] / lib / cmd / tag-cmd.py
index 2561aba383633612ef072a14d42a94bb85f50f9b..0d52677ad4b59ad9a35722a59690dc24e42e8082 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
@@ -18,6 +18,8 @@ from __future__ import absolute_import
 from binascii import hexlify
 import os, sys
 
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
+
 from bup import compat, git, options
 from bup.compat import argv_bytes
 from bup.helpers import debug1, handle_ctrl_c, log