]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/prune-older-cmd.py
Makefile: remove vestigial checkout_info.py installation code
[bup.git] / lib / cmd / prune-older-cmd.py
index 478000984389a9798afb03d6b5b50fba8f538044..c25bb81f74c20fff482e5efffe0fe2d05932c343 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
@@ -20,7 +20,9 @@ from collections import defaultdict
 from itertools import groupby
 from sys import stderr
 from time import localtime, strftime, time
-import re, sys
+import os.path, re, sys
+
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
 
 from bup import compat, git, options
 from bup.compat import argv_bytes, int_types