]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/split-cmd.py
features: show version number of the Python interpreter
[bup.git] / lib / cmd / split-cmd.py
index d9cdc7ed2b2934e55d23202476612c706c945c65..3105eb8290751668ee49bb6a0c4d0339e480cd76 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, division, print_function
 from binascii import hexlify
 import os, sys, time
 
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
+
 from bup import compat, hashsplit, git, options, client
 from bup.compat import argv_bytes, environ
 from bup.helpers import (add_error, handle_ctrl_c, hostname, log, parse_num,