]> arthur.barton.de Git - bup.git/blobdiff - lib/cmd/list-idx-cmd.py
features: show version number of the Python interpreter
[bup.git] / lib / cmd / list-idx-cmd.py
index d9d318f4480361ac03fd27418c71346061f5ed38..e7e7600cdb42a0f38fcd9659bdb2dfacc83921b5 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, print_function
 from binascii import hexlify, unhexlify
-import sys, os
+import os, sys
+
+sys.path[:0] = [os.path.dirname(os.path.realpath(__file__)) + '/..']
 
 from bup import compat, git, options
 from bup.compat import argv_bytes