]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/restore-cmd.py
Prefer python 3, and mention intent to drop python 2 support
[bup.git] / lib / cmd / restore-cmd.py
index 43071d1f0568a0dc0016f80e086887ccbe2f2cdf..37977248c45989707021c77000ed5e7544f67052 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
@@ -192,7 +192,7 @@ def restore(repo, parent_path, name, item, top, sparse, numeric_ids, owner_map,
             out.write(b'%s@ -> %s\n' % (fullname, meta.symlink_target))
     else:
         if verbosity >= 2:
-            out.write(fullname + '\n')
+            out.write(fullname + b'\n')
 
     orig_cwd = os.getcwd()
     try: