]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/random-cmd.py
Prefer python 3, and mention intent to drop python 2 support
[bup.git] / lib / cmd / random-cmd.py
index d939fb86ffcc9a59ea23fb275549b8302e3ffb41..1dd1ff3f720976d7a984c62908fb6f9f681df9df 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
@@ -17,6 +17,8 @@ exec "$bup_python" "$0"
 from __future__ import absolute_import
 import os, sys
 
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
+
 from bup import compat, options, _helpers
 from bup.helpers import atoi, handle_ctrl_c, log, parse_num