]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/restore-cmd.py
metadata: fix test failure with xattrs
[bup.git] / lib / cmd / restore-cmd.py
index f955cca743144dd83b6bfb1edf7b00694196f052..7c8ca262ff3b0d1aba6eddb6049b4ff9493d88ee 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 stat import S_ISDIR
-import copy, errno, os, sys, stat, re
+import copy, errno, os, re, stat, sys
+
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
 
 from bup import compat, options, git, metadata, vfs
 from bup._helpers import write_sparsely